Skip to content

Commit ac34efc

Browse files
Pete Wyckoffgitster
authored andcommitted
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>
1 parent 3820007 commit ac34efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/fast-import/git-p4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ class P4Sync(Command):
16941694

16951695
changes.sort()
16961696
else:
1697-
if not self.p4BranchesInGit:
1697+
if not isinstance(self, P4Clone) and not self.p4BranchesInGit:
16981698
die("No remote p4 branches. Perhaps you never did \"git p4 clone\" in here.");
16991699
if self.verbose:
17001700
print "Getting p4 changes for %s...%s" % (', '.join(self.depotPaths),

0 commit comments

Comments
 (0)