@@ -74,7 +74,7 @@ describe('GitHelper', () => {
74
74
} ) ) ;
75
75
76
76
execCalledWith ( mockExec , [
77
- 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
77
+ 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' || :' ,
78
78
] ) ;
79
79
} ) ;
80
80
@@ -87,7 +87,7 @@ describe('GitHelper', () => {
87
87
} ) ) ;
88
88
89
89
execCalledWith ( mockExec , [
90
- 'git clone \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
90
+ 'git clone \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' || :' ,
91
91
'git fetch \'https://octocat:[email protected] /hello/world.git\' \'+refs/pull/123/merge\' > /dev/null 2>&1' ,
92
92
'git checkout -qf FETCH_HEAD' ,
93
93
] ) ;
@@ -104,7 +104,7 @@ describe('GitHelper', () => {
104
104
105
105
execCalledWith ( mockExec , [
106
106
'git init \'.\'' ,
107
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
107
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
108
108
'git fetch --no-tags origin \'refs/tags/v1.2.3:refs/tags/v1.2.3\' || :' ,
109
109
'git checkout -qf 1234567890' ,
110
110
] ) ;
@@ -118,7 +118,7 @@ describe('GitHelper', () => {
118
118
await helper . checkout ( workDir , context ( ) ) ;
119
119
120
120
execCalledWith ( mockExec , [
121
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
121
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
122
122
'git fetch --no-tags origin \'refs/heads/test-ref:refs/remotes/origin/test-ref\' || :' ,
123
123
'git checkout -qf test-sha' ,
124
124
] ) ;
@@ -130,7 +130,7 @@ describe('GitHelper', () => {
130
130
await helper . checkout ( workDir , context ( { ref : 'refs/pull/123/merge' } ) ) ;
131
131
132
132
execCalledWith ( mockExec , [
133
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
133
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
134
134
'git fetch --no-tags origin \'refs/pull/123/merge:refs/remotes/origin/pull/123/merge\' || :' ,
135
135
'git checkout -qf test-sha' ,
136
136
] ) ;
@@ -142,7 +142,7 @@ describe('GitHelper', () => {
142
142
await helper . checkout ( workDir , context ( { ref : 'refs/tags/v1.2.3' } ) ) ;
143
143
144
144
execCalledWith ( mockExec , [
145
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
145
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
146
146
'git fetch --no-tags origin \'refs/tags/v1.2.3:refs/tags/v1.2.3\' || :' ,
147
147
'git checkout -qf test-sha' ,
148
148
] ) ;
@@ -182,7 +182,7 @@ describe('GitHelper', () => {
182
182
await helper . addOrigin ( workDir , context ( ) ) ;
183
183
184
184
execCalledWith ( mockExec , [
185
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
185
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
186
186
] ) ;
187
187
} ) ;
188
188
@@ -195,7 +195,7 @@ describe('GitHelper', () => {
195
195
execCalledWith ( mockExec , [
196
196
`rm -rdf '${ workDir } '` ,
197
197
'git init \'.\'' ,
198
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
198
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
199
199
] ) ;
200
200
} ) ;
201
201
} ) ;
@@ -207,7 +207,7 @@ describe('GitHelper', () => {
207
207
await helper . fetchOrigin ( workDir , context ( ) ) ;
208
208
209
209
execCalledWith ( mockExec , [
210
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
210
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
211
211
'git fetch origin || :' ,
212
212
] ) ;
213
213
} ) ;
@@ -218,7 +218,7 @@ describe('GitHelper', () => {
218
218
await helper . fetchOrigin ( workDir , context ( ) , [ '--no-tags' ] ) ;
219
219
220
220
execCalledWith ( mockExec , [
221
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
221
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
222
222
'git fetch --no-tags origin || :' ,
223
223
] ) ;
224
224
} ) ;
@@ -229,7 +229,7 @@ describe('GitHelper', () => {
229
229
await helper . fetchOrigin ( workDir , context ( ) , undefined , [ '+refs/pull/*/merge:refs/remotes/pull/*/merge' , '+refs/heads/hoge:refs/remotes/origin/hoge' ] ) ;
230
230
231
231
execCalledWith ( mockExec , [
232
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
232
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
233
233
'git fetch origin \'+refs/pull/*/merge:refs/remotes/pull/*/merge\' \'+refs/heads/hoge:refs/remotes/origin/hoge\' || :' ,
234
234
] ) ;
235
235
} ) ;
@@ -242,7 +242,7 @@ describe('GitHelper', () => {
242
242
await helper . fetchBranch ( workDir , 'test-branch' , context ( ) ) ;
243
243
244
244
execCalledWith ( mockExec , [
245
- 'git fetch --prune --no-recurse-submodules \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'+refs/heads/test-branch:refs/remotes/origin/test-branch\' > /dev/null 2>&1 || :' ,
245
+ 'git fetch --prune --no-tags --no- recurse-submodules \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'+refs/heads/test-branch:refs/remotes/origin/test-branch\' || :' ,
246
246
] ) ;
247
247
} ) ;
248
248
} ) ;
@@ -530,7 +530,7 @@ describe('GitHelper', () => {
530
530
await helper . deleteTag ( workDir , 'delete-tag' , context ( ) ) ;
531
531
532
532
execCalledWith ( mockExec , [
533
- 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag > /dev/null 2>&1 || :' ,
533
+ 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag || :' ,
534
534
'git tag -d delete-tag || :' ,
535
535
] ) ;
536
536
} ) ;
@@ -544,7 +544,7 @@ describe('GitHelper', () => {
544
544
] , context ( ) ) ;
545
545
546
546
execCalledWith ( mockExec , [
547
- 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag1 tags/delete-tag2 > /dev/null 2>&1 || :' ,
547
+ 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag1 tags/delete-tag2 || :' ,
548
548
'git tag -d delete-tag1 delete-tag2 || :' ,
549
549
] ) ;
550
550
} ) ;
@@ -561,8 +561,8 @@ describe('GitHelper', () => {
561
561
] , context ( ) , 3 ) ;
562
562
563
563
execCalledWith ( mockExec , [
564
- 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag1 tags/delete-tag2 tags/delete-tag3 > /dev/null 2>&1 || :' ,
565
- 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag4 refs/tags/delete-tag5 > /dev/null 2>&1 || :' ,
564
+ 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag1 tags/delete-tag2 tags/delete-tag3 || :' ,
565
+ 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/delete-tag4 refs/tags/delete-tag5 || :' ,
566
566
'git tag -d delete-tag1 delete-tag2 delete-tag3 || :' ,
567
567
'git tag -d delete-tag4 delete-tag5 || :' ,
568
568
] ) ;
@@ -576,10 +576,10 @@ describe('GitHelper', () => {
576
576
await helper . copyTag ( workDir , 'new-tag' , 'from-tag' , context ( ) ) ;
577
577
578
578
execCalledWith ( mockExec , [
579
- 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/new-tag > /dev/null 2>&1 || :' ,
579
+ 'git push \'https://octocat:[email protected] /hello/world.git\' --delete tags/new-tag || :' ,
580
580
'git tag -d new-tag || :' ,
581
581
'git tag new-tag from-tag' ,
582
- 'git push \'https://octocat:[email protected] /hello/world.git\' refs/tags/new-tag > /dev/null 2>&1 ' ,
582
+ 'git push \'https://octocat:[email protected] /hello/world.git\' refs/tags/new-tag' ,
583
583
] ) ;
584
584
} ) ;
585
585
} ) ;
@@ -653,7 +653,7 @@ describe('GitHelper', () => {
653
653
await helper . push ( workDir , 'test-branch' , context ( ) , { withTag : true , args : [ '--prune' , '--verbose' ] } ) ;
654
654
655
655
execCalledWith ( mockExec , [
656
- 'git push --tags --prune --verbose \'https://octocat:[email protected] /hello/world.git\' \'test-branch:refs/heads/test-branch\' > /dev/null 2>&1 || :' ,
656
+ 'git push --tags --prune --verbose \'https://octocat:[email protected] /hello/world.git\' \'test-branch:refs/heads/test-branch\' || :' ,
657
657
] ) ;
658
658
} ) ;
659
659
@@ -663,7 +663,7 @@ describe('GitHelper', () => {
663
663
await helper . push ( workDir , 'test-branch' , context ( ) ) ;
664
664
665
665
execCalledWith ( mockExec , [
666
- 'git push \'https://octocat:[email protected] /hello/world.git\' \'test-branch:refs/heads/test-branch\' > /dev/null 2>&1 || :' ,
666
+ 'git push \'https://octocat:[email protected] /hello/world.git\' \'test-branch:refs/heads/test-branch\' || :' ,
667
667
] ) ;
668
668
} ) ;
669
669
} ) ;
@@ -675,7 +675,7 @@ describe('GitHelper', () => {
675
675
await helper . forcePush ( workDir , 'test-branch' , context ( ) ) ;
676
676
677
677
execCalledWith ( mockExec , [
678
- 'git push --force \'https://octocat:[email protected] /hello/world.git\' \'test-branch:refs/heads/test-branch\' > /dev/null 2>&1 || :' ,
678
+ 'git push --force \'https://octocat:[email protected] /hello/world.git\' \'test-branch:refs/heads/test-branch\' || :' ,
679
679
] ) ;
680
680
} ) ;
681
681
} ) ;
@@ -813,19 +813,19 @@ describe('GitHelper', () => {
813
813
await helper . switchBranch ( workDir , 'abc' ) ;
814
814
815
815
execCalledWith ( mockExec , [
816
- 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
816
+ 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' || :' ,
817
817
'git checkout -b abc origin/abc || :' ,
818
818
'git checkout abc || :' ,
819
- 'git clone \'--branch=test\' \'--depth=3\' origin \'.\' > /dev/null 2>&1 || :' ,
819
+ 'git clone \'--branch=test\' \'--depth=3\' origin \'.\' || :' ,
820
820
'git checkout -b abc origin/abc || :' ,
821
821
'git checkout abc || :' ,
822
- 'git clone \'--branch=test\' \'--depth=3\' test \'.\' > /dev/null 2>&1 || :' ,
822
+ 'git clone \'--branch=test\' \'--depth=3\' test \'.\' || :' ,
823
823
'git checkout -b abc test/abc || :' ,
824
824
'git checkout abc || :' ,
825
825
'git clone \'--branch=test\' \'--depth=3\' origin \'.\' || :' ,
826
826
'git checkout -b abc origin/abc || :' ,
827
827
'git checkout abc || :' ,
828
- 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
828
+ 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' || :' ,
829
829
'git checkout -b abc origin/abc || :' ,
830
830
'git checkout abc || :' ,
831
831
] ) ;
@@ -849,7 +849,7 @@ describe('GitHelper with params 1', () => {
849
849
} ) ) ;
850
850
851
851
execCalledWith ( mockExec , [
852
- 'git clone \'--branch=test\' \'--depth=1\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
852
+ 'git clone \'--branch=test\' \'--depth=1\' \'https://octocat:[email protected] /hello/world.git\' \'.\' || :' ,
853
853
] ) ;
854
854
} ) ;
855
855
} ) ;
@@ -880,7 +880,7 @@ describe('GitHelper with params 2', () => {
880
880
} ) ) ;
881
881
882
882
execCalledWith ( mockExec , [
883
- 'git clone \'--branch=test\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
883
+ 'git clone \'--branch=test\' \'https://octocat:[email protected] /hello/world.git\' \'.\' || :' ,
884
884
] ) ;
885
885
} ) ;
886
886
} ) ;
@@ -902,7 +902,7 @@ describe('GitHelper without params', () => {
902
902
} ) ) ;
903
903
904
904
execCalledWith ( mockExec , [
905
- 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' > /dev/null 2>&1 || :' ,
905
+ 'git clone \'--branch=test\' \'--depth=3\' \'https://octocat:[email protected] /hello/world.git\' \'.\' || :' ,
906
906
] ) ;
907
907
} ) ;
908
908
} ) ;
@@ -926,7 +926,7 @@ describe('Debug', () => {
926
926
await expect ( helper . addOrigin ( workDir , context ( ) ) ) . rejects . toThrow ( 'command [git remote add origin] exited with code 123.' ) ;
927
927
928
928
execCalledWith ( mockExec , [
929
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 || :' ,
929
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' || :' ,
930
930
] ) ;
931
931
stdoutCalledWith ( mockStdout , [
932
932
'[command]git remote add origin' ,
@@ -948,7 +948,7 @@ describe('Debug', () => {
948
948
await expect ( helper . addOrigin ( workDir , context ( ) ) ) . rejects . toThrow ( 'command [git remote add origin] exited with code 123.' ) ;
949
949
950
950
execCalledWith ( mockExec , [
951
- 'git remote add origin \'https://octocat:[email protected] /hello/world.git\' > /dev/null 2>&1 ' ,
951
+ 'git remote add origin \'https://octocat:[email protected] /hello/world.git\'' ,
952
952
] ) ;
953
953
stdoutCalledWith ( mockStdout , [
954
954
'[command]git remote add origin' ,
0 commit comments