summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98526e0)
raw | patch | inline | side by side (parent: 98526e0)
author | Eric Wong <normalperson@yhbt.net> | |
Sun, 5 Nov 2006 05:51:11 +0000 (21:51 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 5 Nov 2006 07:33:21 +0000 (23:33 -0800) |
--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>
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>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index cc3335a53f0c783c867c8924f0d922142ce9fdb8..4a56f1871a6e185c4504d2464f264a8d8adc124b 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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";
}