Oops, fix --with-origin to /really/ also call git fetch :)
authorSimon Hausmann <simon@lst.de>
Thu, 24 May 2007 20:28:28 +0000 (22:28 +0200)
committerSimon Hausmann <simon@lst.de>
Thu, 24 May 2007 20:28:28 +0000 (22:28 +0200)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/git-p4

index 0597daa..08af23f 100755 (executable)
@@ -841,6 +841,10 @@ class P4Sync(Command):
         else:
             self.refPrefix = "refs/heads/"
 
+        if self.syncWithOrigin:
+            print "Syncing with origin first as requested by calling git fetch origin"
+            system("git fetch origin")
+
         createP4HeadRef = False;
 
         if len(self.branch) == 0: