From f1f9c98c25f3e4e287279d0f92b68eedf9a4008a Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 20 May 2007 15:15:34 +0200 Subject: [PATCH] Fix gitdir not being set when cloning. Needed for writing the p4 users cache. --- git-p4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-p4 b/git-p4 index e5e7c6b..14be55b 100755 --- a/git-p4 +++ b/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": -- 2.11.4.GIT