提交 049f28c3 编写于 作者: M Martin Langhoff 提交者: Junio C Hamano

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

... in the newly introduced merge detection code.
Signed-off-by: NMartin Langhoff <martin.langhoff@gmail.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 db4b6582
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册