Skip to content

Commit

Permalink
Add useNativeGit to Git Commit Id Plugin - to support working with wo…
Browse files Browse the repository at this point in the history
…rktrees (#1285)

### Motivation
You cannot use git worktrees in KOP development.

### Modifications
see  git-commit-id/git-commit-id-maven-plugin#215

(cherry picked from commit dbea538)
  • Loading branch information
eolivelli committed May 17, 2022
1 parent ea75cba commit e9d4e20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@
<includeOnlyProperty>^git.build.user.(email|name)$</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
<!-- A workaround to make build work in a Git worktree, see https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/215 -->
<useNativeGit>true</useNativeGit>
</configuration>
</plugin>

Expand Down

0 comments on commit e9d4e20

Please sign in to comment.