@@ -187,9 +187,13 @@ describe('Git controller', () => {
187187 'destination/destinationBranch' ,
188188 )
189189 expect ( gitMock . merge ) . toHaveBeenCalledTimes ( 1 )
190- expect ( gitMock . merge ) . toHaveBeenCalledWith ( [ '--ff-only' , 'sourceBranch' ] )
190+ expect ( gitMock . merge ) . toHaveBeenCalledWith ( [
191+ '--no-verify' ,
192+ '--ff-only' ,
193+ 'sourceBranch' ,
194+ ] )
191195 expect ( gitMock . push ) . toHaveBeenCalledTimes ( 1 )
192- expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--force' ] )
196+ expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--no-verify' , '-- force'] )
193197 } )
194198
195199 it ( 'should be syncable, have the environment flag set to true, but not be a merge commit' , async ( ) => {
@@ -265,9 +269,13 @@ describe('Git controller', () => {
265269 'destination/destinationBranch' ,
266270 )
267271 expect ( gitMock . merge ) . toHaveBeenCalledTimes ( 1 )
268- expect ( gitMock . merge ) . toHaveBeenCalledWith ( [ '--ff-only' , 'sourceBranch' ] )
272+ expect ( gitMock . merge ) . toHaveBeenCalledWith ( [
273+ '--no-verify' ,
274+ '--ff-only' ,
275+ 'sourceBranch' ,
276+ ] )
269277 expect ( gitMock . push ) . toHaveBeenCalledTimes ( 1 )
270- expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--force' ] )
278+ expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--no-verify' , '-- force'] )
271279 } )
272280
273281 it ( 'should be syncable, have the environment flag set to true, be a merge commit, but not be a merge to main branch' , async ( ) => {
@@ -348,9 +356,13 @@ describe('Git controller', () => {
348356 'destination/destinationBranch' ,
349357 )
350358 expect ( gitMock . merge ) . toHaveBeenCalledTimes ( 1 )
351- expect ( gitMock . merge ) . toHaveBeenCalledWith ( [ '--ff-only' , 'sourceBranch' ] )
359+ expect ( gitMock . merge ) . toHaveBeenCalledWith ( [
360+ '--no-verify' ,
361+ '--ff-only' ,
362+ 'sourceBranch' ,
363+ ] )
352364 expect ( gitMock . push ) . toHaveBeenCalledTimes ( 1 )
353- expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--force' ] )
365+ expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--no-verify' , '-- force'] )
354366 } )
355367
356368 it ( 'should be syncable, have the environment flag set to true, be a merge commit, and be a merge to main branch,' , async ( ) => {
@@ -429,6 +441,6 @@ describe('Git controller', () => {
429441 expect ( gitMock . reset ) . toHaveBeenCalledTimes ( 1 )
430442 expect ( gitMock . reset ) . toHaveBeenCalledWith ( [ '--hard' , 'HEAD^2' ] )
431443 expect ( gitMock . push ) . toHaveBeenCalledTimes ( 1 )
432- expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--force' ] )
444+ expect ( gitMock . push ) . toHaveBeenCalledWith ( [ '--no-verify' , '-- force'] )
433445 } )
434446} )
0 commit comments