1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-21 09:16:10 +02:00

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

Signed-off-by: Simon Hausmann <simon@lst.de>
This commit is contained in:
Simon Hausmann 2007-05-20 15:15:34 +02:00
parent b607e71efd
commit 59fa417109

View File

@ -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":