From 05d5350a83f879c725059e58130190ae2275e756 Mon Sep 17 00:00:00 2001 From: jole Date: Fri, 24 Jun 2022 15:18:32 +0200 Subject: [PATCH] allow empty messages --- gitbrute.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitbrute.go b/gitbrute.go index f3e106f..0219ed5 100644 --- a/gitbrute.go +++ b/gitbrute.go @@ -78,7 +78,7 @@ func main() { w := <-winner close(done) - cmd := exec.Command("git", "commit", "--allow-empty", "--amend", "--date="+w.author.String(), "--file=-") + cmd := exec.Command("git", "commit", "--allow-empty", "--allow-empty-message", "--amend", "--date="+w.author.String(), "--file=-") cmd.Env = append(os.Environ(), "GIT_COMMITTER_DATE="+w.committer.String()) cmd.Stdout = os.Stdout cmd.Stdin = bytes.NewReader(msg)