File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -111,21 +111,6 @@ - (void)dealloc {
111
111
112
112
#pragma mark API
113
113
114
- + (BOOL )isAGitDirectory : (NSURL *)directory {
115
- NSFileManager *fm = [[NSFileManager alloc ] init ];
116
- BOOL isDir = NO ;
117
- NSURL *headFileURL = [directory URLByAppendingPathComponent: @" HEAD" ];
118
-
119
- if ([fm fileExistsAtPath: headFileURL.path isDirectory: &isDir] && !isDir) {
120
- NSURL *objectsDir = [directory URLByAppendingPathComponent: @" objects" ];
121
- if ([fm fileExistsAtPath: objectsDir.path isDirectory: &isDir] && isDir) {
122
- return YES ;
123
- }
124
- }
125
-
126
- return NO ;
127
- }
128
-
129
114
+ (instancetype )initializeEmptyRepositoryAtFileURL : (NSURL *)localFileURL options : (NSDictionary *)optionsDict error : (NSError **)error {
130
115
if (!localFileURL.isFileURL || localFileURL.path == nil ) {
131
116
if (error != NULL ) *error = [NSError errorWithDomain: NSCocoaErrorDomain code: NSFileWriteUnsupportedSchemeError userInfo: @{ NSLocalizedDescriptionKey : NSLocalizedString(@" Invalid file path URL to initialize repository." , @" " ) }];
You can’t perform that action at this time.
0 commit comments