Merge refs/heads/master from .
[gitweb.git] / 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;