提交 59fa4171 编写于 作者: S Simon Hausmann

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

Signed-off-by: NSimon Hausmann <simon@lst.de>
上级 b607e71e
......@@ -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":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册