We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d8d8fa commit f04fc75Copy full SHA for f04fc75
ObjectiveGit/GTTree.m
@@ -71,7 +71,7 @@ - (GTTreeEntry *)entryWithName:(NSString *)name {
71
- (GTTreeEntry *)entryWithPath:(NSString *)path error:(NSError **)error {
72
git_tree_entry *internalEntry = NULL;
73
int gitError = git_tree_entry_bypath(&internalEntry, self.git_tree, path.UTF8String);
74
- if (error != GIT_OK) {
+ if (gitError != GIT_OK) {
75
if (error != NULL) *error = [NSError git_errorFor:gitError description:@"Failed to get tree entry %@", path];
76
return nil;
77
}
0 commit comments