Open kuthair opened 1 year ago
Does it work in the command line? If yes, did you try to switch Fork to the system git instance?
Yes, it works in the command line.
Yes, I've tried using the system git. Both instances give the same error:
Looks like remote-codecommit
not in PATH
of the Fork process. Where is the file located and how did you configure git to use it?
open -a Fork
command. This will make Fork inherit ENV
(and PATH
) of the terminal process.remote-codecommit
in your configuration.Ahh .. open -a Fork
works.
Yes, it's in my path. I'm using pyenv and installed git-remote-codecommit using the active pyenv python version.
The executable sits in my ~/.pyenv/shims
folder which is in the path.
Probably #2 will work too -- I will see about doing that, thank you.
OK, I can't find a way to set the absolute path to git-remote-codecommit.
But...
Looks like the issue is how Pyenv sets the PATH statement. I'm using ZSH, this is what I have in my .zprofile:
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$HOME/local/bin:$PATH"
eval "$(pyenv init --path)" # Add shims to path
An easy fix was copying the git-remote-codecommit executable to /usr/local/bin
.
Thanks for your help!
I encountered a similar issue and the solution I used is to install git-remote-codecommit using Homebrew. Then the package would be in the path of non-login shells too, and thus Fork could use it.
My company has switched over to use AWS git-remote-codecommit: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html
Any chance of getting support for git remote-helpers?
https://git-scm.com/docs/gitremote-helpers
Thanks for your consideration.