From: Pete Wyckoff Date: Sat, 12 Mar 2011 16:23:23 +0000 (-0500) Subject: git-p4: fix clone @all regression X-Git-Tag: v1.7.5-rc0~34^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac34efcf214269201849a1ca32ab86614bfe4c8b;p=git.git 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 Reported-by: Anatol Pomozov Based-on-patch-by: Tor Arvid Lund Signed-off-by: Junio C Hamano --- diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index 725af7599..3c44524cd 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),