From: Simon Hausmann Date: Thu, 7 Jun 2007 19:12:25 +0000 (+0200) Subject: Make clone behave like git clone by default again. X-Git-Tag: v1.5.3-rc0~65^2^2~20^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e100b5cd7210f8054fd3464872c0366abc3c1dc;p=git.git Make clone behave like git clone by default again. Signed-off-by: Simon Hausmann --- diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index 965b391cd..3fe7ae77a 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