summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/fast-import/git-p43
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":