Also look for git in /usr/local/bin/git

This commit is contained in:
Pieter de Bie
2008-09-18 02:22:35 +02:00
parent c91b3ff201
commit db39aeebeb
+5 -1
View File
@@ -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;