Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

Commit b2e2ddf

Browse files
Eric WongJunio C Hamano
authored andcommitted
git-svn: don't die on rebuild when --upgrade is specified
--copy-remote and --upgrade are rarely (never?) used together, so if --copy-remote is specified, that means the user really wanted to copy the remote ref, and we should fail if that fails. Signed-off-by: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 98526e0 commit b2e2ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3139,7 +3139,7 @@ sub copy_remote_ref {
31393139
my $ref = "refs/remotes/$GIT_SVN";
31403140
if (safe_qx('git-ls-remote', $origin, $ref)) {
31413141
sys(qw/git fetch/, $origin, "$ref:$ref");
3142-
} else {
3142+
} elsif ($_cp_remote && !$_upgrade) {
31433143
die "Unable to find remote reference: ",
31443144
"refs/remotes/$GIT_SVN on $origin\n";
31453145
}

0 commit comments

Comments
 (0)