You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int gitError = git_status_file(&status, self.git_repository, fileURL.path.fileSystemRepresentation);
101
101
if (gitError != GIT_OK) {
102
-
if (error) *error = [NSErrorgit_errorFor:gitError description:@"Status failed"failureReason:@"Failed to get status for file \"%@\" in \"%@\"", fileURL.path, self.gitDirectoryURL];
103
-
if (success) *success = NO;
102
+
if (error != nil) *error = [NSErrorgit_errorFor:gitError description:@"Status failed"failureReason:@"Failed to get status for file \"%@\" in \"%@\"", fileURL.path, self.gitDirectoryURL];
int gitError = git_status_should_ignore(&ignoreState, self.git_repository, fileURL.path.fileSystemRepresentation);
117
117
if (gitError != GIT_OK) {
118
-
if (error) *error = [NSErrorgit_errorFor:gitError description:@"Ignore failed"failureReason:@"Failed to get ignore status for file \"%@\" in \"%@\"", fileURL.path, self.gitDirectoryURL];
119
-
if (success) *success = NO;
118
+
if (error != nil) *error = [NSErrorgit_errorFor:gitError description:@"Ignore failed"failureReason:@"Failed to get ignore status for file \"%@\" in \"%@\"", fileURL.path, self.gitDirectoryURL];
0 commit comments