]> asedeno.scripts.mit.edu Git - git.git/commitdiff
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 0597daa8491f3c4604448fded7f75bf7db95d203..08af23f9fd23e113c13b55ce2cd62803c27b89ae 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: