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;