fmt-merge-msg: do not add excess newline at the end.
authorJunio C Hamano <junkio@cox.net>
Mon, 20 Feb 2006 05:14:56 +0000 (21:14 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 20 Feb 2006 05:14:56 +0000 (21:14 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fmt-merge-msg.perl

index 616bb52..c34ddc5 100755 (executable)
@@ -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";