Skip to content

Commit c716075

Browse files
authored
Fix "cannot create empty commit: clean working tree" (#49)
1 parent 41edd3b commit c716075

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/app.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ func (a *App) doCommitsForProject(
185185
committer.When = commit.CommittedAt
186186

187187
if _, errCommit := worktree.Commit(commit.Message, &git.CommitOptions{
188-
Author: committer,
189-
Committer: committer,
188+
Author: committer,
189+
Committer: committer,
190+
AllowEmptyCommits: true,
190191
}); errCommit != nil {
191192
return commitCounter, fmt.Errorf("commit: %w", errCommit)
192193
}

0 commit comments

Comments
 (0)