mirror of
https://github.com/git/git.git
synced 2024-06-08 14:46:11 +02:00
Make --with-origin also work without origin :)
Signed-off-by: Simon Hausmann <shausman@trolltech.com>
This commit is contained in:
parent
4280e53333
commit
417a7a6fc8
|
@ -846,6 +846,7 @@ class P4Sync(Command):
|
|||
self.refPrefix = "refs/heads/"
|
||||
|
||||
if self.syncWithOrigin:
|
||||
if gitBranchExists("origin"):
|
||||
print "Syncing with origin first as requested by calling git fetch origin"
|
||||
system("git fetch origin")
|
||||
|
||||
|
|
Loading…
Reference in New Issue