mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Add ~/bin/git to search paths
This commit is contained in:
+8
-1
@@ -45,14 +45,21 @@ static NSString* gitPath;
|
||||
return gitPath;
|
||||
}
|
||||
|
||||
static NSMutableArray *locations = nil;
|
||||
|
||||
+ (NSArray *) searchLocations
|
||||
{
|
||||
NSArray* locations = [NSArray arrayWithObjects:@"/opt/local/bin/git",
|
||||
if (locations)
|
||||
return locations;
|
||||
|
||||
locations = [NSMutableArray arrayWithObjects:@"/opt/local/bin/git",
|
||||
@"/sw/bin/git",
|
||||
@"/opt/git/bin/git",
|
||||
@"/usr/local/bin/git",
|
||||
@"/usr/local/git/bin/git",
|
||||
nil];
|
||||
|
||||
[locations addObject:[@"~/bin/git" stringByExpandingTildeInPath]];
|
||||
return locations;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user