summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-11-05 05:51:11 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-11-09 17:34:36 (GMT)
commita35a045874379467395e0909958827ad89afc03d (patch)
treeeb06576bef6a44d06c645622620e5f74d9f7f481
parent75bd7e374ef35265dfd7c3c1896f4fb91450e50d (diff)
downloadgit-a35a045874379467395e0909958827ad89afc03d.zip
git-a35a045874379467395e0909958827ad89afc03d.tar.gz
git-a35a045874379467395e0909958827ad89afc03d.tar.bz2
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 <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index cc3335a..4a56f18 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -3139,7 +3139,7 @@ sub copy_remote_ref {
my $ref = "refs/remotes/$GIT_SVN";
if (safe_qx('git-ls-remote', $origin, $ref)) {
sys(qw/git fetch/, $origin, "$ref:$ref");
- } else {
+ } elsif ($_cp_remote && !$_upgrade) {
die "Unable to find remote reference: ",
"refs/remotes/$GIT_SVN on $origin\n";
}