Closed LudovicRousseau closed 11 years ago
The PBGitRepository.gitDirForURL method executes the git rev-parse --git-dir
command which fails and shows the
"[dir] does not appear to be a git repository." error.
But this isn't the error message from the git command, which in my case was:
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line [nr] in /Users/[username]/.gitconfig
GitX uses the git command install by Xcode:
$ /usr/bin/git --version
git version 1.7.10.2 (Apple Git-33)
Open the GitX preferences and select the newer git executable.
I you installed git with brew it's probably located at /usr/local/bin/git
Tip: The keyboard shortcut command+shift+G when browsing for the executable allow you to jump to an hidden path.
Exact. Using git from brew (version 1.8.0) solves this problem. I close this bug report.
Thanks
I am using git 1.8.0 and I got the message:
After using the proposed command:
git config --global push.default simple
gitx fails to open the repository.I have to use
git config --global push.default matching
to be able to use gitx again.