Browse Source

[PATCH] git-cvsimport - remove hardcoded reference to origin

... in the newly introduced merge detection code.

Signed-off-by: Martin Langhoff <martin.langhoff@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Martin Langhoff 20 years ago committed by Junio C Hamano
parent
commit
049f28c392
  1. 2
      git-cvsimport-script

2
git-cvsimport-script

@ -579,7 +579,7 @@ my $commit = sub { @@ -579,7 +579,7 @@ my $commit = sub {
foreach my $rx (@mergerx) {
if ($logmsg =~ $rx) {
my $mparent = $1;
if ($mparent eq 'HEAD') { $mparent = 'origin'};
if ($mparent eq 'HEAD') { $mparent = $opt_o };
if ( -e "$git_dir/refs/heads/$mparent") {
$mparent = get_headref($mparent, $git_dir);
push @par, '-p', $mparent;

Loading…
Cancel
Save