git-p4: fix clone @all regression
[gitweb.git] / contrib / fast-import / git-p4
index 725af75995ce2af79814d61045d3c0a489812e62..3c44524cdf0488025be57a0a3db25af1de2fc101 100755 (executable)
@@ -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),