Skip to content

Commit

Permalink
Make --with-origin also work without origin :)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
  • Loading branch information
Simon Hausmann committed May 25, 2007
1 parent 4280e53 commit 417a7a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/fast-import/git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 417a7a6

Please sign in to comment.