@matheusbsbs / matheus-bagliano / commits / 59fa417109
Fork 0

Fix gitdir not being set when cloning. Needed for writing the p4 users cache.

Signed-off-by: Simon Hausmann <simon@lst.de>

Simon Hausmann committed May 20, 2007 at 15:15 UTC 59fa4171090ae8dcc7087ac617dca40e66f9b33a
1 file changed +3
contrib/fast-import/git-p4
+3
@@ -972,6 +972,8 @@ class P4Clone(P4Sync):
972 self.needsGit = False
973
974 def run(self, args):
975 + global gitdir
976 +
977 if len(args) < 1:
978 return False
979 depotPath = args[0]
@@ -1007,6 +1009,7 @@ class P4Clone(P4Sync):
1009 os.makedirs(dir)
1010 os.chdir(dir)
1011 system("git init")
1012 + gitdir = os.getcwd()
1013 if not P4Sync.run(self, [depotPath]):
1014 return False
1015 if self.branch != "master":