From db39aeebebfab988340dffef16a43b66c46c581d Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Thu, 18 Sep 2008 02:22:35 +0200 Subject: [PATCH] Also look for git in /usr/local/bin/git --- PBGitRepository.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PBGitRepository.m b/PBGitRepository.m index fd4ca25..8032158 100644 --- a/PBGitRepository.m +++ b/PBGitRepository.m @@ -37,7 +37,11 @@ static NSString* gitPath; return; // Still no path. Let's try some default locations. - NSArray* locations = [NSArray arrayWithObjects:@"/opt/local/bin/git", @"/sw/bin/git", @"/opt/git/bin/git", nil]; + NSArray* locations = [NSArray arrayWithObjects:@"/opt/local/bin/git", + @"/sw/bin/git", + @"/opt/git/bin/git", + @"/usr/local/bin/git", + nil]; for (NSString* location in locations) { if ([[NSFileManager defaultManager] fileExistsAtPath:location]) { gitPath = location;