@@ -411,8 +411,8 @@ describe('sparseCloneChart', () => {
411411 // Verify commit and push were called
412412 expect ( mockGit . add ) . toHaveBeenCalledWith ( '.' )
413413 expect ( mockGit . commit ) . toHaveBeenCalledWith ( `Add ${ chartTargetDirName } helm chart` )
414- expect ( mockGit . pull ) . toHaveBeenCalledWith ( 'origin' , 'main' , { '--rebase' : null } )
415- expect ( mockGit . push ) . toHaveBeenCalledWith ( 'origin' , 'main' )
414+ expect ( mockGit . pull ) . toHaveBeenCalledWith ( 'origin' , 'refs/heads/ main' , { '--rebase' : null } )
415+ expect ( mockGit . push ) . toHaveBeenCalledWith ( 'origin' , 'refs/heads/ main' )
416416 } )
417417
418418 test ( 'handles Gitea URLs by encoding credentials' , async ( ) => {
@@ -801,8 +801,8 @@ describe('chartRepo', () => {
801801
802802 expect ( mockGit . add ) . toHaveBeenCalledWith ( '.' )
803803 expect ( mockGit . commit ) . toHaveBeenCalledWith ( `Add ${ chartName } helm chart` )
804- expect ( mockGit . pull ) . toHaveBeenCalledWith ( 'origin' , 'main' , { '--rebase' : null } )
805- expect ( mockGit . push ) . toHaveBeenCalledWith ( 'origin' , 'main' )
804+ expect ( mockGit . pull ) . toHaveBeenCalledWith ( 'origin' , 'refs/heads/ main' , { '--rebase' : null } )
805+ expect ( mockGit . push ) . toHaveBeenCalledWith ( 'origin' , 'refs/heads/ main' )
806806 } )
807807} )
808808
0 commit comments