From c083b834af9a4d3c89f1b72dc638684d7ae4a62a Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 25 May 2007 10:28:46 +0200 Subject: [PATCH] Make --with-origin also work without origin :) --- git-p4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-p4 b/git-p4 index e8a5c1f..30ee68c 100755 --- a/git-p4 +++ b/git-p4 @@ -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; -- 2.11.0