@@ -267,6 +267,7 @@ describe('GitHelper', () => {
267
267
268
268
execCalledWith ( mockExec , [
269
269
'git checkout -b test-branch origin/test-branch || :' ,
270
+ 'git checkout test-branch || :' ,
270
271
] ) ;
271
272
} ) ;
272
273
} ) ;
@@ -814,14 +815,19 @@ describe('GitHelper', () => {
814
815
execCalledWith ( mockExec , [
815
816
'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
816
817
'git checkout -b abc origin/abc || :' ,
818
+ 'git checkout abc || :' ,
817
819
'git clone \'--branch=test\' \'--depth=3\' origin \'.\' > /dev/null 2>&1 || :' ,
818
820
'git checkout -b abc origin/abc || :' ,
821
+ 'git checkout abc || :' ,
819
822
'git clone \'--branch=test\' \'--depth=3\' test \'.\' > /dev/null 2>&1 || :' ,
820
823
'git checkout -b abc test/abc || :' ,
824
+ 'git checkout abc || :' ,
821
825
'git clone \'--branch=test\' \'--depth=3\' origin \'.\' || :' ,
822
826
'git checkout -b abc origin/abc || :' ,
827
+ 'git checkout abc || :' ,
823
828
'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
824
829
'git checkout -b abc origin/abc || :' ,
830
+ 'git checkout abc || :' ,
825
831
] ) ;
826
832
} ) ;
827
833
} ) ;
0 commit comments