Browse Source

Make clone behave like git clone by default again.

Signed-off-by: Simon Hausmann <simon@lst.de>
maint
Simon Hausmann 18 years ago
parent
commit
5e100b5cd7
  1. 5
      contrib/fast-import/git-p4

5
contrib/fast-import/git-p4

@ -1364,6 +1364,11 @@ class P4Clone(P4Sync): @@ -1364,6 +1364,11 @@ class P4Clone(P4Sync):
sys.exit(1)

depotPaths = args

if not self.cloneDestination and len(depotPaths) > 1:
self.cloneDestination = depotPaths[-1]
depotPaths = depotPaths[:-1]

for p in depotPaths:
if not p.startswith("//"):
return False

Loading…
Cancel
Save