Merge branch 'uk/ls-remote-in-get-remote-url'
[gitweb.git] / contrib / fast-import / git-p4
index 2df3bb21c4aff3863844a0f679d257efa48e68b5..7cb479c5e1b21e4b0de936ced57981e0bf804b0c 100755 (executable)
@@ -1763,7 +1763,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),