@@ -50,7 +50,7 @@ + (instancetype)remoteWithName:(NSString *)name inRepository:(GTRepository *)rep
5050 NSParameterAssert (repo != nil );
5151
5252 git_remote *remote;
53- int gitError = git_remote_load (&remote, repo.git_repository , name.UTF8String );
53+ int gitError = git_remote_lookup (&remote, repo.git_repository , name.UTF8String );
5454 if (gitError != GIT_OK) {
5555 if (error != NULL ) *error = [NSError git_errorFor: gitError description: @" Remote loading failed" failureReason: nil ];
5656
@@ -92,12 +92,6 @@ - (NSUInteger)hash {
9292
9393#pragma mark API
9494
95- + (BOOL )isSupportedURLString : (NSString *)URLString {
96- NSParameterAssert (URLString != nil );
97-
98- return git_remote_supported_url (URLString.UTF8String ) == GIT_OK;
99- }
100-
10195+ (BOOL )isValidRemoteName : (NSString *)name {
10296 NSParameterAssert (name != nil );
10397
@@ -162,7 +156,7 @@ - (BOOL)rename:(NSString *)name error:(NSError **)error {
162156
163157 git_strarray problematic_refspecs;
164158
165- int gitError = git_remote_rename (&problematic_refspecs, self.git_remote , name.UTF8String );
159+ int gitError = git_remote_rename (&problematic_refspecs, self.repository . git_repository , git_remote_name (self. git_remote ) , name.UTF8String );
166160 if (gitError != GIT_OK) {
167161 NSArray *problematicRefspecs = [NSArray git_arrayWithStrarray: problematic_refspecs];
168162 NSDictionary *userInfo = [NSDictionary dictionaryWithObject: problematicRefspecs forKey: GTRemoteRenameProblematicRefSpecs];
0 commit comments