Skip to content

Commit a15cde2

Browse files
committed
Pass current remote name into git_remote_rename
1 parent 8049c0c commit a15cde2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ObjectiveGit/GTRemote.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ - (BOOL)rename:(NSString *)name error:(NSError **)error {
156156

157157
git_strarray problematic_refspecs;
158158

159-
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);
160160
if (gitError != GIT_OK) {
161161
NSArray *problematicRefspecs = [NSArray git_arrayWithStrarray:problematic_refspecs];
162162
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:problematicRefspecs forKey:GTRemoteRenameProblematicRefSpecs];

0 commit comments

Comments
 (0)