Skip to content

Commit

Permalink
Allow empty commits (aws#7359)
Browse files Browse the repository at this point in the history
  • Loading branch information
taneyland authored Jan 24, 2024
1 parent 6c6b037 commit 7540251
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/git/gitclient/gitclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ func (gg *goGit) AddGlob(f string, w *gogit.Worktree) error {

func (gg *goGit) Commit(m string, sig *object.Signature, w *gogit.Worktree) (plumbing.Hash, error) {
return w.Commit(m, &gogit.CommitOptions{
Author: sig,
Author: sig,
AllowEmptyCommits: true,
})
}

Expand Down

0 comments on commit 7540251

Please sign in to comment.