Skip to content

Commit

Permalink
Allow empty commit on unfuck
Browse files Browse the repository at this point in the history
  • Loading branch information
billy4479 committed Feb 3, 2025
1 parent cbb2a8c commit 5a87ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func UnfuckCommit(baseDir string) error {
return err
}

err = RunCmdPretty(baseDir, "git", "commit", "-m", "Unfuck: manual commit")
err = RunCmdPretty(baseDir, "git", "commit", "--allow-empty", "-m", "Unfuck: manual commit")
if err != nil {
return err
}
Expand Down

0 comments on commit 5a87ca5

Please sign in to comment.