Skip to content

Commit 00b90de

Browse files
committed
Fix a bug with the gitx argument handling
1 parent 760d7c6 commit 00b90de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/Controllers/PBGitRepositoryDocument.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,13 @@ - (void)showWindows
116116
NSScriptCommand *command = [NSScriptCommand currentCommand];
117117

118118
if (command) {
119+
// Check if `gitx` has provided some arguments
119120
NSURL *repoURL = [command directParameter];
120121

121122
// on app launch there may be many repositories opening, so double check that this is the right repo
122123
if (repoURL) {
123124
repoURL = [PBRepositoryFinder gitDirForURL:repoURL];
124-
if ([repoURL isEqual:self.fileURL]) {
125+
if ([repoURL isEqual:_repository.gitURL]) {
125126
NSArray *arguments = command.arguments[@"openOptions"];
126127
[self handleGitXScriptingArguments:arguments];
127128
}

0 commit comments

Comments
 (0)