Skip to content

Commit

Permalink
git-p4: Always call 'p4 sync ...' before submitting to Perforce.
Browse files Browse the repository at this point in the history
Acked-by: Marius Storm-Olsen <marius@trolltech.com>
Acked-by: Thiago Macieira <thiago@kde.org>
  • Loading branch information
Simon Hausmann committed Sep 3, 2007
1 parent 86bab96 commit 31f9ec1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31f9ec1

Please sign in to comment.