Search code examples
gitpre-commit-hooksmartgit

How can I add a custom path to my Git GUI SmartGit?


Recent changes to git pre-commit hooks have caused my favorite Git GUI SmartGit to stop working. I can't commit because it can't find the bundle command.

I know the path to the bundle command by writing where bundle, but how can I tell this to SmartGit? I can only specify the Git path in the preferences.


Solution

  • SmartGit and all processes invoked by SmartGit (especially Git itself) will use the PATH which is provided by the environment from which you are starting SmartGit. On Linux and OSX, you can also extend SmartGit's PATH by adding path=/additional/path to smartgit.vmoptions (see SmartGit documentation).