1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-04 00:46:12 +02:00

Make clone behave like git clone by default again.

Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
Simon Hausmann 2007-06-07 21:12:25 +02:00
parent c4b33253c2
commit 5e100b5cd7

View File

@ -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