Skip to content

Commit e9d4e20

Browse files
committed
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 (cherry picked from commit dbea538)
1 parent ea75cba commit e9d4e20

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
@@ -568,6 +568,8 @@
568568
<includeOnlyProperty>^git.build.user.(email|name)$</includeOnlyProperty>
569569
</includeOnlyProperties>
570570
<commitIdGenerationMode>full</commitIdGenerationMode>
571+
<!-- A workaround to make build work in a Git worktree, see https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/215 -->
572+
<useNativeGit>true</useNativeGit>
571573
</configuration>
572574
</plugin>
573575

0 commit comments

Comments
 (0)