Skip to content

Commit

Permalink
Merge pull request #666 from alehed/valid_remote_name
Browse files Browse the repository at this point in the history
Fix bug in isValidRemoteName
  • Loading branch information
tiennou authored Sep 10, 2018
2 parents 90f0185 + 6374f3b commit 6fe2c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ObjectiveGit/GTRemote.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ - (NSString *)description {
+ (BOOL)isValidRemoteName:(NSString *)name {
NSParameterAssert(name != nil);

return git_remote_is_valid_name(name.UTF8String) == GIT_OK;
return (git_remote_is_valid_name(name.UTF8String) == 1 ? YES : NO);
}

#pragma mark Properties
Expand Down

0 comments on commit 6fe2c65

Please sign in to comment.