Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow empty commits with GoGit update #7359

Merged
merged 1 commit into from Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/git/gitclient/gitclient.go
Expand Up @@ -360,7 +360,8 @@

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,

Check warning on line 364 in pkg/git/gitclient/gitclient.go

View check run for this annotation

Codecov / codecov/patch

pkg/git/gitclient/gitclient.go#L363-L364

Added lines #L363 - L364 were not covered by tests
})
}

Expand Down