Comments (5)
Just take your own project, create an alternative worktree, and try run the plugin (see updated command above)
from git-build-hook.
Hi there,
I'm afraid I didn't even realise the git worktree
feature existed until you raised this issue. I haven't had much time to work on the project recently, but I am hoping to find a big chunk of time soon to fix some issues and make some improvements.
I will take a look and see what I can work out. Would you be able to include a link to a minimal project that demonstrates the issue?
from git-build-hook.
Looks like this is a bug in jgit (which we are using to run git commands in the plugin).
https://bugs.eclipse.org/bugs/show_bug.cgi?id=477475
It's been known about since 2015 and hasn't been fixed. Looks like jgit is not being pro-actively maintained. There is a fork with a fix, but it is not published. I think it is probably safest to assume that jgit will never create a fix, so I will look into alternatives.
from git-build-hook.
I have released a fix in 3.4.0. You should be able to upgrade and you will be able to use worktrees without the error you were seeing.
The behaviour has been changed so that the configure goal will not attempt to apply configuration changes in a worktree. You should see a warning in your build output to that effect.
from git-build-hook.
Resolving this issue. Feel free to open a new issue if you have any further problems.
from git-build-hook.
Related Issues (20)
- Add new logo to README.md HOT 1
- Allow install goal to pull down hook from remote URIs HOT 1
- Validate Git version for the configure goal HOT 1
- Allow users to set/add arbitrary git configuration
- Namespace plugin confinguration in goal specific sections HOT 1
- Update README.md for 3.0.0 to reflect new API HOT 1
- Use Pre-Commit Hooks only? HOT 4
- Currently deploying test jar and classpath hooks examples HOT 1
- gitconfig add vs set HOT 1
- Using this plugin in a SBT project HOT 1
- threadsafe HOT 3
- Disable on CI HOT 1
- Thread safety when setting hooksPath HOT 5
- NPE when using version 3.4.1 HOT 2
- Better error messages when declaring invalid configuration
- Add a skip option to the Mojos HOT 5
- Plugin validation issues
- Fails to initialize repo if using worktrees on windows HOT 4
- Allow installation of hooks using a custom hooksPath HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-build-hook.