Skip to content

Commit 66c2138

Browse files
committed
fix: missing check for FullName of selected branch while filtering branch in Statistic window (#2532)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 90aecc6 commit 66c2138

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Commands/Statistics.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Statistics(string repo, int max, Models.Branch specBranch)
1717
.Append(max)
1818
.Append(" --format=%ct$%aN±%aE ");
1919

20-
if (specBranch == null)
20+
if (specBranch == null || string.IsNullOrEmpty(specBranch.FullName))
2121
builder.Append("--branches --remotes");
2222
else
2323
builder.Append(specBranch.FullName);

0 commit comments

Comments
 (0)