summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorPete Wyckoff <pw@padd.com>2011-03-12 16:23:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-13 08:06:25 (GMT)
commitac34efcf214269201849a1ca32ab86614bfe4c8b (patch)
tree0dc64c20815833fd1b5d9c26cef63bbb8d961a3a /contrib
parent382000769477ed0666e99d01c21df64df9ba0911 (diff)
downloadgit-ac34efcf214269201849a1ca32ab86614bfe4c8b.zip
git-ac34efcf214269201849a1ca32ab86614bfe4c8b.tar.gz
git-ac34efcf214269201849a1ca32ab86614bfe4c8b.tar.bz2
git-p4: fix clone @all regression
e32e00d (git-p4: better message for "git-p4 sync" when not cloned, 2011-02-19) broke the use of the "@all" revision specifier, e.g., git-p4 clone //depot/xxx@all Fix it as per Tor Arvid's quick patch. Signed-off-by: Pete Wyckoff <pw@padd.com> Reported-by: Anatol Pomozov <anatol.pomozov@gmail.com> Based-on-patch-by: Tor Arvid Lund <torarvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fast-import/git-p42
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 725af75..3c44524 100755
--- a/contrib/fast-import/git-p4
+++ b/contrib/fast-import/git-p4
@@ -1694,7 +1694,7 @@ class P4Sync(Command):
changes.sort()
else:
- if not self.p4BranchesInGit:
+ if not isinstance(self, P4Clone) and not self.p4BranchesInGit:
die("No remote p4 branches. Perhaps you never did \"git p4 clone\" in here.");
if self.verbose:
print "Getting p4 changes for %s...%s" % (', '.join(self.depotPaths),