-
Notifications
You must be signed in to change notification settings - Fork 22
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
Commit-wizard fails for submodules #74
Comments
The error happens in ggit.commitMessage() Changing commit-message.js to this allows it to work:
It should check if './.git' is a file or a directory. If it's a directory, the existing logic is fine. If it's a file, it should read the property 'gitdir' from the file and use that as the location of '.git'. |
That seems like an excellent pull request candidate :) Sent from my iPhone
|
Submitted, but I suspect you'll have a number of other locations in the code that should be checking '.git' to see if it's actually a file and not a directory. A utility function to get the project's Git home would be handy. |
Supporting people submitting pull requests probably isn't what you'd like to be doing, but the CI build seems to be failing, and it doesn't appear to be related to my change.
The TravisCI build output is at available here. |
Hi, I fixed the travis to use Node 4.2.2 (this is because my require hook uses internal code, which changed in latest v4 and v5 node versions) I also upgraded ggit to latest version to make your folder method available. |
Hey @bahmutov, did I need to do something else on this? I've switched off of my pre-git fork to [email protected], but it doesn't seem to pick up the .git config from the parent repository for submodules. Just checking before I dive in further. |
ughhh, not sure why this does not find the right git folder, you can see diagnostic messages using |
Commit attempt fails with [Error: Cannot find file ./.git/COMMIT_EDITMSG]
The text was updated successfully, but these errors were encountered: