Skip to content

Commit

Permalink
fix number of branches to ignore HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Oct 8, 2020
1 parent 239b73b commit cc122c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ impl Info {

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

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

futures::join!(tags, branches)
Expand Down

0 comments on commit cc122c4

Please sign in to comment.