Development tips, help, and suggestions for building performant websites
Linux – Ruby – Capistrano – GIT – No Such File or Directory – Errno::ENOENT
If you are running capistrano to execute commands on another server and get a message that looks like:
No such file or directory - /usr/local/git/bin/git ls-remote git@github.com:user/repo.git master (Errno::ENOENT)
Be sure the user whom you are logging in as through capistrano has access to `git`. To test whether the user has access, ssh as the user and type `git`, if you get a bash error, then set the path in the user’s ~/.bash_profile. Otherwise you should see a list of git options.

