-
Notifications
You must be signed in to change notification settings - Fork 443
Add support for custom location of .git directory #459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom location of .git directory #459
Conversation
|
PS: your git email is not correctly configured in your working dir, git didn't recognize your authorship (see cat avatar on your commit) |
64c223d to
ac724c2
Compare
|
@SerkanYildiz Thanks for pointing that out. Fixed. |
|
Hi @pascal-hofmann, Thanks for the PR! Didn't know people actually used custom git paths. The configuration option was mostly introduced for installations in which the source code is not in the git base folder but one or more directories underneath. That is why the naming is a bit confusing. I'll have to play around with this PR to make sure everything works. This will take me some time. |
|
Can be reproduced like this (tested using git version 2.15.1): |
|
This PR has now been open for 4 weeks. How can I help to get this merged? |
|
This is happening to me too. Could this get merged? |
ac724c2 to
548f480
Compare
|
Thank you @pascal-hofmann! |
|
Thanks for merging! 👍 |
git supports using a custom path for the
.gitdirectory. When used,.gitis a file containinggitdir: <path>to point at the real directory.Currently grumphp does not support this, because the path used to install the git hooks is incorrect (there obviously can't be a
.git/hooksin this case). This also can't be worked around with the config paramgit-dir(which by the way is badly named) because the path used will always end with.git/hooks, but the custom directory may be named differently (not.git).This PR adds support for custom repository paths by reading
.gitif it's a file and using the path contained.