File tree Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 42
42
43
43
- (BOOL )deleteValueForKey : (NSString *)key error : (NSError **)error ;
44
44
45
- // / Reloads the configuration from the files on disk if they have changed since
46
- // / it was originally loaded.
47
- // /
48
- // / error - The error if one occurred.
49
- // /
50
- // / Returns whether the refresh was successful.
51
- - (BOOL )refresh : (NSError **)error ;
52
-
53
45
@end
Original file line number Diff line number Diff line change @@ -140,17 +140,4 @@ - (NSArray *)remotes {
140
140
return remotes;
141
141
}
142
142
143
- #pragma mark Refresh
144
-
145
- - (BOOL )refresh : (NSError **)error {
146
- int success = git_config_refresh (self.git_config );
147
- if (success != GIT_OK) {
148
- if (error != NULL ) *error = [NSError git_errorFor: success description: @" Couldn't reload the configuration from disk." ];
149
-
150
- return NO ;
151
- }
152
-
153
- return YES ;
154
- }
155
-
156
143
@end
Original file line number Diff line number Diff line change 253
253
254
254
NSString *configKey = @" submodule.Test_App2.url" ;
255
255
NSString *newOrigin = @" https://github.com/libgit2/objective-git.git" ;
256
- [config setString: newOrigin forKey: configKey];
257
256
258
- expect (@( [config refresh: NULL ])). to ( beTruthy ()) ;
257
+ [config setString: newOrigin forKey: configKey] ;
259
258
expect ([config stringForKey: configKey]).to (equal (newOrigin));
260
259
261
260
__block NSError *error = nil ;
262
261
expect (@([submodule sync: &error])).to (beTruthy ());
263
-
264
- expect (@([config refresh: NULL ])).to (beTruthy ());
265
262
expect ([config stringForKey: configKey]).to (equal (@" ../Test_App" ));
266
263
});
267
264
});
You can’t perform that action at this time.
0 commit comments