fmt-merge-msg: do not add excess newline at the end.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 19, 2006 at 21:14 UTC
a15f43312f6962959e8daa33df0cf5357852a4b8
1 file changed
+1
git-fmt-merge-msg.perl
+1
@@ -43,6 +43,7 @@ sub current_branch {
43
my $fh;
44
open $fh, '-|', 'git-symbolic-ref', 'HEAD' or die "$!";
45
my ($bra) = <$fh>;
46
+ chomp($bra);
47
$bra =~ s|^refs/heads/||;
48
if ($bra ne 'master') {
49
$bra = " into $bra";