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:
@ -972,6 +972,8 @@ class P4Clone(P4Sync):
|
|||||||
self.needsGit = False
|
self.needsGit = False
|
||||||
|
|
||||||
def run(self, args):
|
def run(self, args):
|
||||||
|
global gitdir
|
||||||
|
|
||||||
if len(args) < 1:
|
if len(args) < 1:
|
||||||
return False
|
return False
|
||||||
depotPath = args[0]
|
depotPath = args[0]
|
||||||
@ -1007,6 +1009,7 @@ class P4Clone(P4Sync):
|
|||||||
os.makedirs(dir)
|
os.makedirs(dir)
|
||||||
os.chdir(dir)
|
os.chdir(dir)
|
||||||
system("git init")
|
system("git init")
|
||||||
|
gitdir = os.getcwd()
|
||||||
if not P4Sync.run(self, [depotPath]):
|
if not P4Sync.run(self, [depotPath]):
|
||||||
return False
|
return False
|
||||||
if self.branch != "master":
|
if self.branch != "master":
|
||||||
|
Reference in New Issue
Block a user