Skip to content

PBGitRepository don't recieve apple events from cli #196

@miv

Description

@miv

Digging into problem where i unable to open specific branch from command line i found that NSAppleEventDescriptor created in gitx.m#handleOpenRepository does't propagate to PBGitRepository. This: NSAppleEventDescriptor *currentAppleEvent = [[NSAppleEventManager sharedAppleEventManager] currentAppleEvent]; always return null on my machine.

I checked that event in gitx.m is created:

2013-06-12 10:35:06.219 gitx[1779:707] Params are(
    gitdir
)
2013-06-12 10:35:06.221 gitx[1779:707] searchModeForCommandLineArgument gitdir
2013-06-12 10:35:06.221 gitx[1779:707] Recoding params for gui
2013-06-12 10:35:06.221 gitx[1779:707] Adding argument gitdir
2013-06-12 10:35:06.224 gitx[1779:707] Apple descriptor <NSAppleEventDescriptor: { 'ARGS':[ 'utxt'("gitdir") ], 'furl':'utxt'("file://localhost/Volumes/Secondary/Projects/gitx/") }>
2013-06-12 10:35:06.256 gitx[1779:707] Opened
Handling no arguments%

My knowledge of obj-c programming is not enough to progress further without advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions