mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Also look for git in /usr/local/bin/git
This commit is contained in:
+5
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user