git-p4: Always call 'p4 sync ...' before submitting to Perforce.
authorSimon Hausmann <simon@lst.de>
Tue, 21 Aug 2007 09:53:02 +0000 (11:53 +0200)
committerSimon Hausmann <simon@lst.de>
Mon, 3 Sep 2007 18:27:02 +0000 (20:27 +0200)
Acked-by: Marius Storm-Olsen <marius@trolltech.com>
Acked-by: Thiago Macieira <thiago@kde.org>
contrib/fast-import/git-p4

index 55778c577564dc2afde8cf36f3dbc1c994e4ded4..3728cbf9aa21c7cf2d245a3199aa3e0d5559b0dc 100755 (executable)
@@ -664,9 +664,8 @@ class P4Submit(Command):
             f.close();
 
         os.chdir(self.clientPath)
-        response = raw_input("Do you want to sync %s with p4 sync? [y]es/[n]o " % self.clientPath)
-        if response == "y" or response == "yes":
-            system("p4 sync ...")
+        print "Syncronizing p4 checkout..."
+        system("p4 sync ...")
 
         if self.reset:
             self.firstTime = True