diff options
author | Simon Hausmann <simon@lst.de> | 2007-05-20 15:15:34 +0200 |
---|---|---|
committer | Simon Hausmann <simon@lst.de> | 2007-05-20 15:15:34 +0200 |
commit | 59fa4171090ae8dcc7087ac617dca40e66f9b33a (patch) | |
tree | 4b567b367043d56ef6d0dee580b05cde29771ac5 | |
parent | Cache the output of "p4 users" for faster syncs on high latency links. (diff) | |
download | tgif-59fa4171090ae8dcc7087ac617dca40e66f9b33a.tar.xz |
Fix gitdir not being set when cloning. Needed for writing the p4 users cache.
Signed-off-by: Simon Hausmann <simon@lst.de>
-rwxr-xr-x | contrib/fast-import/git-p4 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4 b/contrib/fast-import/git-p4 index e5e7c6be12..14be55bcfc 100755 --- a/contrib/fast-import/git-p4 +++ b/contrib/fast-import/git-p4 @@ -972,6 +972,8 @@ class P4Clone(P4Sync): self.needsGit = False def run(self, args): + global gitdir + if len(args) < 1: return False depotPath = args[0] @@ -1007,6 +1009,7 @@ class P4Clone(P4Sync): os.makedirs(dir) os.chdir(dir) system("git init") + gitdir = os.getcwd() if not P4Sync.run(self, [depotPath]): return False if self.branch != "master": |