Comments (7)
I actually think that I may have found something already. In /src/commands/prepare-commit-msg-hook.ts on line 18, you check if the commit message is already set and stops the execution if it is. Since I need to type something to actually commit, this would always disable opencommit.
from opencommit.
Removing that from the hook and changing the first line to my full node path enabled it. It would be great if line 18 is optional (maybe configurable per project via the cli) and the first line should contain the full path to node to work with GitKraken (maybe globally configurable via the cli)
from opencommit.
I created #19 for the configurable line 18 check, but I don't know how to fix the node path error.
It seems that GitKraken doesn't know the environment variables at all, so /usr/bin/env doesn't work there.
from opencommit.
wow, that's great research! now i see what #19 is about, nice. let me check it one more time
from opencommit.
have you tried this https://stackoverflow.com/a/26320915? may solve the 'node': file or folder doesn't exist
issue
from opencommit.
have you tried this https://stackoverflow.com/a/26320915? may solve the
'node': file or folder doesn't exist
issue
I just tried it, but that doesn't work either, since you call /usr/bin/env node
. The /usr/bin/env
part is the problem. But a workaround that actually works great is to simply change the hook and since it's a symlink, it's automagically changed for all projects, so it works now, but it's a bit of a hacky way haha.
from opencommit.
@Lars- thats great, could you close the issue pls <3
from opencommit.
Related Issues (20)
- [Feature]: Support Custom API Key Formats and Server Addresses HOT 6
- [Feature]: Add '--yes' or '-y' option to automatically accept AI generated commit messages HOT 3
- Proposal for Expanding Maintenance Team HOT 17
- [Feature]: Custom Commit Messages with OpenAI Enhancement (-m Flag) HOT 3
- [Feature]: minimalistic output HOT 3
- Is this project alive? HOT 2
- [Bug]: Ollama documentation is incorrect
- [Bug]: ollama output erroneously considers sample data HOT 2
- [Feature]: Make ollama hostname configurable HOT 1
- [Feature]: Use different file type instead .env for local configuration HOT 1
- [Feature]: Perplexity Support HOT 5
- [Feature]: Add Gemini Support HOT 1
- [Bug]: Unable to use oco with ollama running mistral HOT 5
- [Bug]: Local Ollama with OpenCommit not working when internet is blocked HOT 4
- [Feature]: Claude 3 Support HOT 3
- [Bug]: Unsupported config key `OCO_MODEL` error when using `oco` command HOT 13
- [Bug]: Setting `OCO_ONE_LINE_COMMIT=true` generates a multi-line message HOT 1
- [Bug]: Request failed with status code 404 HOT 1
- [Feature]: add oco at Docker hub HOT 1
- [Bug]: ✖ Unsupported config key OCO_OPENAI_API_KEY: Must be 51 characters long
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 opencommit.