@@ -624,7 +624,7 @@ func TestPushChanges(t *testing.T) {
624
624
assert .NoError (t , err )
625
625
assert .Equal (t , "428ecf70bc22df0ba3dcf194b5ce53e769abab07" , commitID )
626
626
assert .Equal (t , "update version 1.2.3" , worktree .commitMsg )
627
- assert .Equal (t , & git.CommitOptions {All : true , Author : & object.Signature {Name : "Project Piper" , When : testTime }}, worktree .commitOpts )
627
+ assert .Equal (t , & git.CommitOptions {All : true , AllowEmptyCommits : true , Author : & object.Signature {Name : "Project Piper" , When : testTime }}, worktree .commitOpts )
628
628
assert .Equal (t , "1.2.3" , repo .tag )
629
629
assert .Equal (t , "428ecf70bc22df0ba3dcf194b5ce53e769abab07" , repo .tagHash .String ())
630
630
assert .Equal (t , & git.PushOptions {RefSpecs : []gitConfig.RefSpec {"refs/tags/1.2.3:refs/tags/1.2.3" }, Auth : & gitHttp.BasicAuth {Username : config .Username , Password : config .Password }}, repo .pushOptions )
@@ -644,7 +644,7 @@ func TestPushChanges(t *testing.T) {
644
644
assert .NoError (t , err )
645
645
assert .Equal (t , "428ecf70bc22df0ba3dcf194b5ce53e769abab07" , commitID )
646
646
assert .Equal (t , "update version 1.2.3" , worktree .commitMsg )
647
- assert .Equal (t , & git.CommitOptions {All : true , Author : & object.Signature {Name : "Project Piper" , When : testTime }}, worktree .commitOpts )
647
+ assert .Equal (t , & git.CommitOptions {All : true , AllowEmptyCommits : true , Author : & object.Signature {Name : "Project Piper" , When : testTime }}, worktree .commitOpts )
648
648
assert .Equal (t , "1.2.3" , repo .tag )
649
649
assert .Equal (t , "428ecf70bc22df0ba3dcf194b5ce53e769abab07" , repo .tagHash .String ())
650
650
assert .Equal (t , & git.PushOptions {RefSpecs : []gitConfig.RefSpec {"refs/tags/1.2.3:refs/tags/1.2.3" }, Auth : & ssh.PublicKeysCallback {}, CABundle : customCerts }, repo .pushOptions )
0 commit comments