exclude git directories from git_binary function #137

wants to merge 1 commit into


None yet
2 participants

catz commented Aug 20, 2012

hi all,

I've got an error with git_binary method with following PATH


Interesting moment here is that git_binary splits path by colons and add 'git' string. After that final result will be /usr/local/git - but it's directory. On MacOS this leads to Errno::EACCES: Permission denied – posix_spawnp error.

For example try on any directory
bundle exec ruby -e "require 'posix/spawn'; p POSIX::Spawn::Child.new('/usr')"

As a result we should exclude directories from path search.


bkeepers commented Feb 3, 2014

Grit is no longer maintained. See #183 and check out libgit2/rugged.

@bkeepers bkeepers closed this Feb 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment