From cdb02e48d3b192735b25425966d33ecd94d51761 Mon Sep 17 00:00:00 2001 From: Taylor Neyland Date: Tue, 23 Jan 2024 19:08:24 +0000 Subject: [PATCH] Allow empty commits --- pkg/git/gitclient/gitclient.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/git/gitclient/gitclient.go b/pkg/git/gitclient/gitclient.go index cc8c06b78a6e..e8a01b6707a6 100644 --- a/pkg/git/gitclient/gitclient.go +++ b/pkg/git/gitclient/gitclient.go @@ -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, }) }