Oops, fix --with-origin to /really/ also call git fetch :)
authorSimon Hausmann <simon@luria.(none)>
Thu, 24 May 2007 20:28:28 +0000 (22:28 +0200)
committerSimon Hausmann <simon@luria.(none)>
Thu, 24 May 2007 20:28:28 +0000 (22:28 +0200)
git-p4

diff --git a/git-p4 b/git-p4
index 0597daa..08af23f 100755 (executable)
--- a/git-p4
+++ b/git-p4
@@ -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: