From a15f43312f6962959e8daa33df0cf5357852a4b8 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 19 Feb 2006 21:14:56 -0800 Subject: [PATCH] fmt-merge-msg: do not add excess newline at the end. Signed-off-by: Junio C Hamano --- git-fmt-merge-msg.perl | 1 + 1 file changed, 1 insertion(+) diff --git a/git-fmt-merge-msg.perl b/git-fmt-merge-msg.perl index 616bb521c..c34ddc5d5 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"; -- 2.26.2