Skip to content

Commit cc122c4

Browse files
committed
fix number of branches to ignore HEAD
1 parent 239b73b commit cc122c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/info.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ impl Info {
428428

429429
let branches = String::from_utf8_lossy(&output.stdout);
430430

431-
branches.lines().count()
431+
branches.lines().count() - 1 //Exclude origin/HEAD -> origin/master
432432
};
433433

434434
futures::join!(tags, branches)

0 commit comments

Comments
 (0)