From dc56af4aa683e11c975ecb1febfec873216d8b34 Mon Sep 17 00:00:00 2001 From: Nathan Kinsinger Date: Fri, 26 Feb 2010 10:26:01 -0700 Subject: [PATCH] CLIProxy: use the newly created NSURL for the workingDirectory NSURL's don't play nice with NSDistantObject, use the newly created NSURL instead of the NSDistantObject proxy. This fixes problems with rev specifiers created using the gitx tool crashing GitX the second time they are viewed because the NSConnection to the tool has been closed. --- PBCLIProxy.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBCLIProxy.m b/PBCLIProxy.m index 83507d2..416c917 100644 --- a/PBCLIProxy.m +++ b/PBCLIProxy.m @@ -56,7 +56,7 @@ [document.windowController showCommitView:self]; else { PBGitRevSpecifier* rev = [[PBGitRevSpecifier alloc] initWithParameters:arguments]; - rev.workingDirectory = repositoryPath; + rev.workingDirectory = url; document.currentBranch = [document addBranch: rev]; [document.windowController showHistoryView:self]; }