diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-11-04 21:51:11 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-09 09:34:36 -0800 |
commit | a35a045874379467395e0909958827ad89afc03d (patch) | |
tree | eb06576bef6a44d06c645622620e5f74d9f7f481 /git-svn.perl | |
parent | 75bd7e374ef35265dfd7c3c1896f4fb91450e50d (diff) | |
download | git-a35a045874379467395e0909958827ad89afc03d.tar.gz git-a35a045874379467395e0909958827ad89afc03d.tar.xz |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl index cc3335a53..4a56f1871 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"; } |