git-build-hook icon indicating copy to clipboard operation
git-build-hook copied to clipboard

Fails to initialize repo if using worktrees on windows

Open summersb opened this issue 6 months ago • 3 comments

When running mvn compile I receive the following error

[ERROR] Failed to execute goal com.rudikershaw.gitbuildhook:git-build-hook-maven-plugin:3.4.1:configure (default) on project recap-parent: Could not find or initialise a local git repository. A repository is required.: repository not found: {mypath}\repo.git\worktrees{branchname} -> [Help 1]

summersb avatar Dec 13 '23 19:12 summersb

created a PR https://github.com/rudikershaw/git-build-hook/pull/55

summersb avatar Dec 13 '23 19:12 summersb

Good catch, and thanks for the contribution.

rudikershaw avatar Dec 14 '23 12:12 rudikershaw

I've merged in the changes. I don't have a ETA for a release of the changes to a new version, but I hope to push out a release soon (it's been too long). I'll leave the issue open until the release.

rudikershaw avatar Dec 14 '23 12:12 rudikershaw