[PATCH] git-cvsimport - remove hardcoded reference to origin
authorMartin Langhoff <martin@ng.eduforge.org>
Tue, 16 Aug 2005 21:27:09 +0000 (09:27 +1200)
committerJunio C Hamano <junkio@cox.net>
Wed, 17 Aug 2005 21:53:39 +0000 (14:53 -0700)
... 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>
git-cvsimport-script
index 1f36acea22310b0bf1944d2c8d531380ff1383d5..e3a8e584a562e8e50c5d7316acc653babafcd8ba 100755 (executable)
@@ -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;