Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freebsd git_shell_binary #2

Open
jnnewton opened this issue Oct 19, 2013 · 2 comments
Open

freebsd git_shell_binary #2

jnnewton opened this issue Oct 19, 2013 · 2 comments

Comments

@jnnewton
Copy link

to get this to start working on freebsd 9 , i had to change line 90 of init.py to: git_shell_binary='/usr/local/bin/git-shell' once i did that, i was able to clone a repo. Not sure if this is an issue, or just an out of scope case, but i thought i'd let you know. thanks for the project.

@mensi
Copy link
Owner

mensi commented Oct 19, 2013

That was kinda expected (I used to be an avid FreeBSD user myself ;)) and that's actually the reason why you can specify the git binary explicitly. I don't really know how to resolve this in a platform-independent way however and am open to suggestions...

@jnnewton
Copy link
Author

def find_git_shell():
path = os.environ.get("PATH", os.defpath)
for dir in path.split(os.pathsep):
full_path = os.path.join(dir, 'git-shell')
if (os.path.exists(full_path) and os.access(full_path, (os.F_OK | os.X_OK))):
return full_path
raise Exception('Could not find git executable!')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants