Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Put /usr/local/bin/git first in list

People can install their own hits and have that used in preference.
  • Loading branch information...
commit 3cf9aca8565776273ad3504d865bd27ff358e3d2 1 parent b45ca64
@mxcl authored
Showing with 6 additions and 13 deletions.
  1. +1 −4 PBGitBinary.h
  2. +5 −9 PBGitBinary.m
View
5 PBGitBinary.h
@@ -7,13 +7,10 @@
//
#import <Cocoa/Cocoa.h>
-
#define MIN_GIT_VERSION "1.6.0"
-@interface PBGitBinary : NSObject {
-
-}
+@interface PBGitBinary : NSObject
+ (NSString *) path;
+ (NSString *) version;
+ (NSArray *) searchLocations;
View
14 PBGitBinary.m
@@ -83,18 +83,16 @@ + (void) initialize
NSLog(@"Could not find a git binary higher than version " MIN_GIT_VERSION);
}
-+ (NSString *) path;
-{
++ (NSString *)path {
return gitPath;
}
-+ (NSArray *)searchLocations
-{
++ (NSArray *)searchLocations {
return @[
- @"/usr/bin/git",
- @"/Applications/Xcode.app/Contents/Developer/usr/bin/git",
@"/usr/local/bin/git",
@"/opt/local/bin/git",
+ @"/usr/bin/git",
+ @"/Applications/Xcode.app/Contents/Developer/usr/bin/git",
@"/sw/bin/git",
@"/opt/git/bin/git",
@"/usr/local/git/bin/git",
@@ -114,10 +112,8 @@ + (NSString *) notFoundError
}
-+ (NSString *)version
-{
++ (NSString *)version {
return [self versionForPath:gitPath];
}
-
@end
Please sign in to comment.
Something went wrong with that request. Please try again.