File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2748,23 +2748,23 @@ def run(self, args):
2748
2748
self .changeRange = ""
2749
2749
self .initialParent = ""
2750
2750
self .previousDepotPaths = []
2751
+ self .hasOrigin = False
2751
2752
2752
2753
# map from branch depot path to parent branch
2753
2754
self .knownBranches = {}
2754
2755
self .initialParents = {}
2755
- self .hasOrigin = originP4BranchesExist ()
2756
- if not self .syncWithOrigin :
2757
- self .hasOrigin = False
2758
2756
2759
2757
if self .importIntoRemotes :
2760
2758
self .refPrefix = "refs/remotes/p4/"
2761
2759
else :
2762
2760
self .refPrefix = "refs/heads/p4/"
2763
2761
2764
- if self .syncWithOrigin and self .hasOrigin :
2765
- if not self .silent :
2766
- print "Syncing with origin first by calling git fetch origin"
2767
- system ("git fetch origin" )
2762
+ if self .syncWithOrigin :
2763
+ self .hasOrigin = originP4BranchesExist ()
2764
+ if self .hasOrigin :
2765
+ if not self .silent :
2766
+ print 'Syncing with origin first, using "git fetch origin"'
2767
+ system ("git fetch origin" )
2768
2768
2769
2769
if len (self .branch ) == 0 :
2770
2770
self .branch = self .refPrefix + "master"
You can’t perform that action at this time.
0 commit comments