Skip to content

Commit dbea538

Browse files
authored
Add useNativeGit to Git Commit Id Plugin - to support working with worktrees (#1285)
### Motivation You cannot use git worktrees in KOP development. ### Modifications see git-commit-id/git-commit-id-maven-plugin#215
1 parent cc49e7c commit dbea538

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@
406406
<includeOnlyProperty>^git.build.user.(email|name)$</includeOnlyProperty>
407407
</includeOnlyProperties>
408408
<commitIdGenerationMode>full</commitIdGenerationMode>
409+
<!-- A workaround to make build work in a Git worktree, see https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/215 -->
410+
<useNativeGit>true</useNativeGit>
409411
</configuration>
410412
</plugin>
411413

0 commit comments

Comments
 (0)