Make clone behave like git clone by default again.
Signed-off-by: Simon Hausmann <simon@lst.de>
Simon Hausmann committed
Jun 7, 2007 at 21:12 UTC
5e100b5cd7210f8054fd3464872c0366abc3c1dc
1 file changed
+5
contrib/fast-import/git-p4
+5
@@ -1364,6 +1364,11 @@ class P4Clone(P4Sync):
1364
sys.exit(1)
1365
1366
depotPaths = args
1367
+
1368
+ if not self.cloneDestination and len(depotPaths) > 1:
1369
+ self.cloneDestination = depotPaths[-1]
1370
+ depotPaths = depotPaths[:-1]
1371
+
1372
for p in depotPaths:
1373
if not p.startswith("//"):
1374
return False