{"thread":{"id":"23034","subject":"[PATCH resend] git-gui: fix \"Explore Working Copy\" for Windows again","startedAt":"2010-03-15T23:22:05Z","lastAt":"2010-03-15T23:22:05Z","messageCount":1,"participants":["Markus Heidelberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"136897","messageId":"1268695325-9112-1-git-send-email-markus.heidelberg@web.de","threadId":"23034","inReplyTo":null,"subject":"[PATCH resend] git-gui: fix \"Explore Working Copy\" for Windows again","fromName":"Markus Heidelberg","fromEmail":"markus.heidelberg@web.de","sentAt":"2010-03-15T23:22:05Z","receivedAt":"2010-03-15T23:22:05Z","isPatch":true,"sender":{"key":"markus.heidelberg@web.de","avatar":"https://avatars.githubusercontent.com/u/6334512?v=4"},"body":"It has already been fixed in commit 454efb47 (git-gui (Win): make\n\"Explore Working Copy\" more robust, 2009-04-01), but has been broken in\ncommit 21985a11 (git-gui: handle non-standard worktree locations,\n2010-01-23) by accidentally replacing too much with a new variable.\n\nThe problem can be reproduced when starting git-gui from within a\nsubdirectory. The solution is to convert the path name, explorer.exe is\ninvoked with, to a platform native name.\n\nSigned-off-by: Markus Heidelberg <markus.heidelberg@web.de>\n---\n git-gui.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-gui.sh b/git-gui.sh\nindex 8996d2d..7184afa 100755\n--- a/git-gui.sh\n+++ b/git-gui.sh\n@@ -2101,7 +2101,7 @@ proc do_explore {} {\n \t\t# freedesktop.org-conforming system is our best shot\n \t\tset explorer \"xdg-open\"\n \t}\n-\teval exec $explorer $_gitworktree &\n+\teval exec $explorer [list [file nativename $_gitworktree]] &\n }\n \n set is_quitting 0\n-- \n1.7.0.52.gb3f79\n"}]}