зеркало из https://github.com/microsoft/git.git
[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>
This commit is contained in:
Родитель
db4b65821e
Коммит
049f28c392
|
@ -579,7 +579,7 @@ my $commit = sub {
|
||||||
foreach my $rx (@mergerx) {
|
foreach my $rx (@mergerx) {
|
||||||
if ($logmsg =~ $rx) {
|
if ($logmsg =~ $rx) {
|
||||||
my $mparent = $1;
|
my $mparent = $1;
|
||||||
if ($mparent eq 'HEAD') { $mparent = 'origin'};
|
if ($mparent eq 'HEAD') { $mparent = $opt_o };
|
||||||
if ( -e "$git_dir/refs/heads/$mparent") {
|
if ( -e "$git_dir/refs/heads/$mparent") {
|
||||||
$mparent = get_headref($mparent, $git_dir);
|
$mparent = get_headref($mparent, $git_dir);
|
||||||
push @par, '-p', $mparent;
|
push @par, '-p', $mparent;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче