Git v1.8.5 changed the output of status:
$ git status On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working directory clean
Notice the "#" at the beginning of the lines are gone, here are the output from v1.8.4:
$ git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # nothing to commit (working directory clean)
Any plan to fix this and better yet append "--porcelain -b" for the status command to be future proof? I will try to fix it myself but my perl and regex is not that good.
I was able to fix this by commenting out lines 2715-2718 and changing the regex on line 2720 to s/^(?:# )?(?:On branch |Not currently on any branch.)(.+)?\n?//
Lines 2714 through 2720 now look like this:
my ($premove);
#while ($msg =~ s/(^[^#].*\n)//)
#{
# $premove .= $1;
#}
die "gits unexpected status output (missing branch): $msg" unless ($msg =~ s/^(?:# )?(?:On branch |Not currently on any branch.)(.+)?\n?//);