Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed erroneous shouldIgnoreFile return value #543

Merged
merged 1 commit into from
Jan 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ObjectiveGit/GTRepository+Status.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ extern NSString *const GTRepositoryStatusOptionsPathSpecArrayKey;

/// Tests the ignore rules to see if the file should be considered as ignored.
///
/// fileURL - A string path relative to the working copy. Must not be nil.
/// fileURL - A local file URL for a file in the repository. Must not be nil.
/// success - If not NULL, will be set to indicate success or fail.
/// error - If not nil, set to any error that occurs.
///
Expand Down
2 changes: 1 addition & 1 deletion ObjectiveGit/GTRepository+Status.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ - (BOOL)shouldFileBeIgnored:(NSURL *)fileURL success:(BOOL *)success error:(NSEr
}

if (success != NULL) *success = YES;
return (ignoreState == 0 ? YES : NO);
return (ignoreState == 1 ? YES : NO);
}

@end