Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make clone behave like git clone by default again.
[gitweb.git]
/
contrib
/
fast-import
/
git-p4
diff --git
a/contrib/fast-import/git-p4
b/contrib/fast-import/git-p4
index 965b391cda870ecd7d174adb00151ccbbcdf36d4..3fe7ae77a889c4b60a9687a02e6bd0016f256318 100755
(executable)
--- a/
contrib/fast-import/git-p4
+++ b/
contrib/fast-import/git-p4
@@
-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