Skip to content

Commit 59c4983

Browse files
committed
Bugfix: only exit the handleSTDINDiff() if there is an actual diff
1 parent d00dbe4 commit 59c4983

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gitx.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ void handleSTDINDiff()
120120
if (diff && [diff length] > 0) {
121121
GitXApplication *gitXApp = [SBApplication applicationWithBundleIdentifier:kGitXBundleIdentifier];
122122
[gitXApp showDiff:diff];
123+
exit(0);
123124
}
124-
125-
exit(0);
126125
}
127126

128127
void handleDiffWithArguments(NSURL *repositoryURL, NSMutableArray *arguments)

0 commit comments

Comments
 (0)