GithubHelp home page GithubHelp logo

Commits in GitKraken about opencommit HOT 7 CLOSED

di-sukharev avatar di-sukharev commented on May 19, 2024
Commits in GitKraken

from opencommit.

Comments (7)

Lars- avatar Lars- commented on May 19, 2024

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.

Lars- avatar Lars- commented on May 19, 2024

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.

Lars- avatar Lars- commented on May 19, 2024

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.

sukharev-deel avatar sukharev-deel commented on May 19, 2024

wow, that's great research! now i see what #19 is about, nice. let me check it one more time

from opencommit.

sukharev-deel avatar sukharev-deel commented on May 19, 2024

have you tried this https://stackoverflow.com/a/26320915? may solve the 'node': file or folder doesn't exist issue

from opencommit.

Lars- avatar Lars- commented on May 19, 2024

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.

di-sukharev avatar di-sukharev commented on May 19, 2024

@Lars- thats great, could you close the issue pls <3

from opencommit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.