Make --with-origin also work without origin :)

Signed-off-by: Simon Hausmann <shausman@trolltech.com>
maint
Simon Hausmann 2007-05-25 10:28:46 +02:00
parent 4280e53333
commit 417a7a6fc8
1 changed files with 3 additions and 2 deletions

View File

@ -846,8 +846,9 @@ class P4Sync(Command):
self.refPrefix = "refs/heads/"

if self.syncWithOrigin:
print "Syncing with origin first as requested by calling git fetch origin"
system("git fetch origin")
if gitBranchExists("origin"):
print "Syncing with origin first as requested by calling git fetch origin"
system("git fetch origin")

createP4HeadRef = False;