]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Fix gitdir not being set when cloning. Needed for writing the p4 users cache.
authorSimon Hausmann <simon@lst.de>
Sun, 20 May 2007 13:15:34 +0000 (15:15 +0200)
committerSimon Hausmann <simon@lst.de>
Sun, 20 May 2007 13:15:34 +0000 (15:15 +0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4

index e5e7c6be12d97d0ec436dbdcede040db30f3717d..14be55bcfcc493dd5e1d790b129e2c24a538f9c2 100755 (executable)
@@ -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":