Permalink
Browse files

Bugfix: only exit the handleSTDINDiff() if there is an actual diff

  • Loading branch information...
1 parent d00dbe4 commit 59c4983b5125a6ac27d961a20ab27f59fa1f3155 @brotherbard brotherbard committed Sep 21, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 gitx.m
View
3 gitx.m
@@ -120,9 +120,8 @@ void handleSTDINDiff()
if (diff && [diff length] > 0) {
GitXApplication *gitXApp = [SBApplication applicationWithBundleIdentifier:kGitXBundleIdentifier];
[gitXApp showDiff:diff];
+ exit(0);
}
-
- exit(0);
}
void handleDiffWithArguments(NSURL *repositoryURL, NSMutableArray *arguments)

0 comments on commit 59c4983

Please sign in to comment.