Skip to content

Commit

Permalink
[hg] -Fix: suppress stderr of hg heads
Browse files Browse the repository at this point in the history
  • Loading branch information
Juhasz Peter committed Jan 23, 2014
1 parent e206c7d commit a10a8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ parse_hg_status() {

if [[ $hg_multiple_heads_display == "on" ]]; then
local hg_heads
hg_heads=$(hg heads --template '{rev}\n' $branch | wc -l)
hg_heads=$(hg heads --template '{rev}\n' $branch 2> /dev/null | wc -l)

if [[ $hg_heads -gt 1 ]]; then
detached=detached
Expand Down

0 comments on commit a10a8dc

Please sign in to comment.