summaryrefslogtreecommitdiff
path: root/contrib/fast-import/git-p4
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <simon@lst.de>2007-06-07 21:12:25 +0200
committerLibravatar Simon Hausmann <simon@lst.de>2007-06-07 21:52:12 +0200
commit5e100b5cd7210f8054fd3464872c0366abc3c1dc (patch)
treefdf7dedc3a4f280625482c42d08bd6696e244ea0 /contrib/fast-import/git-p4
parentExclude the HEAD symbolic ref from the list of known branches (diff)
downloadtgif-5e100b5cd7210f8054fd3464872c0366abc3c1dc.tar.xz
Make clone behave like git clone by default again.
Signed-off-by: Simon Hausmann <simon@lst.de>
Diffstat (limited to 'contrib/fast-import/git-p4')
-rwxr-xr-xcontrib/fast-import/git-p45
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4
index 965b391cda..3fe7ae77a8 100755
--- 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