fmt-merge-msg: do not add excess newline at the end.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -43,6 +43,7 @@ sub current_branch {
|
|||||||
my $fh;
|
my $fh;
|
||||||
open $fh, '-|', 'git-symbolic-ref', 'HEAD' or die "$!";
|
open $fh, '-|', 'git-symbolic-ref', 'HEAD' or die "$!";
|
||||||
my ($bra) = <$fh>;
|
my ($bra) = <$fh>;
|
||||||
|
chomp($bra);
|
||||||
$bra =~ s|^refs/heads/||;
|
$bra =~ s|^refs/heads/||;
|
||||||
if ($bra ne 'master') {
|
if ($bra ne 'master') {
|
||||||
$bra = " into $bra";
|
$bra = " into $bra";
|
||||||
|
Reference in New Issue
Block a user