Skip to content

Commit

Permalink
Merge pull request #543 from onecrayon/master
Browse files Browse the repository at this point in the history
Fixed erroneous shouldIgnoreFile return value
  • Loading branch information
joshaber committed Jan 27, 2016
2 parents c574002 + 4ee75c4 commit 17e8896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 17e8896

Please sign in to comment.