diff options
author | Junio C Hamano <junkio@cox.net> | 2006-02-19 21:14:56 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-19 21:14:56 -0800 |
commit | a15f43312f6962959e8daa33df0cf5357852a4b8 (patch) | |
tree | 69979d1f4bd486f162b5b11c84a567542888791b /git-fmt-merge-msg.perl | |
parent | 2b020455f92ea3c20a78005dd19e7a127bb5b481 (diff) | |
download | git-a15f43312f6962959e8daa33df0cf5357852a4b8.tar.gz |
fmt-merge-msg: do not add excess newline at the end.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-fmt-merge-msg.perl')
-rwxr-xr-x | git-fmt-merge-msg.perl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-fmt-merge-msg.perl b/git-fmt-merge-msg.perl index 616bb521cb..c34ddc5d5e 100755 --- a/git-fmt-merge-msg.perl +++ b/git-fmt-merge-msg.perl @@ -43,6 +43,7 @@ sub current_branch { my $fh; open $fh, '-|', 'git-symbolic-ref', 'HEAD' or die "$!"; my ($bra) = <$fh>; + chomp($bra); $bra =~ s|^refs/heads/||; if ($bra ne 'master') { $bra = " into $bra"; |