Skip to content

Commit 19a5bb8

Browse files
committed
Make sure we don't try to handle arguments for multiple files
Fixes #152
1 parent 00b90de commit 19a5bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Controllers/PBGitRepositoryDocument.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ - (void)showWindows
120120
NSURL *repoURL = [command directParameter];
121121

122122
// on app launch there may be many repositories opening, so double check that this is the right repo
123-
if (repoURL) {
123+
if (repoURL && [repoURL isKindOfClass:[NSURL class]]) {
124124
repoURL = [PBRepositoryFinder gitDirForURL:repoURL];
125125
if ([repoURL isEqual:_repository.gitURL]) {
126126
NSArray *arguments = command.arguments[@"openOptions"];

0 commit comments

Comments
 (0)