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

Added "/usr/bin/git" to the searchLocations. #281

Merged
merged 1 commit into from
Mar 4, 2014

Conversation

codiophile
Copy link

I use the git version that is shipped with Xcode, which resides in "/usr/bin/git". When trying to open a repository I got this error message:

Could not find a git binary version 1.6.0 or higher.
Please make sure there is a git binary in one of the following locations:

/opt/local/bin/git
/sw/bin/git
/opt/git/bin/git
/usr/local/bin/git
/usr/local/git/bin/git
/Users/bler/bin/git

I did not feel like moving my git binary, so I added my location to the list. Considering that my location is the default location for git on OS X I really think it should be in this list. I was surprised that it wasn't.

I use the git version that is shipped with Xcode, which resides in "/usr/bin/git". When trying to open a repository I got this error message:

Could not find a git binary version 1.6.0 or higher.
Please make sure there is a git binary in one of the following locations:

	/opt/local/bin/git
	/sw/bin/git
	/opt/git/bin/git
	/usr/local/bin/git
	/usr/local/git/bin/git
	/Users/bler/bin/git

I did not feel like moving my git binary, so I added my location to the list. Considering that my location is the default location for git on OS X I really think it should be in this list. I was surprised that it wasn't.
@rowanj
Copy link
Owner

rowanj commented Mar 4, 2014

The standard paths like /bin and /usr/bin used to be discovered in the process environment by the initial attempt at running /usr/bin/which git - I wonder when this changed...

Anyhow, nice catch, and a simple fix 👍

rowanj added a commit that referenced this pull request Mar 4, 2014
Added "/usr/bin/git" to the searchLocations.
@rowanj rowanj merged commit 2e23f77 into rowanj:master Mar 4, 2014
@codiophile
Copy link
Author

Actually... It started working later. So maybe the real bug that should be fixed is this /usr/bin/which git not always working...

@JeffDonovan
Copy link

I was getting the same kind of error message, even though /usr/bin/git was listed. I spent a lot of time searching on Google for an answer and couldn't find a solution. Then I simply rebooted my computer which fixed the problem.

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

Successfully merging this pull request may close these issues.

3 participants