@matheusbsbs / matheus-bagliano / commits / 2e0cda658e
Fork 0

git-gui: fix "Explore Working Copy" for Windows again

It has already been fixed in commit 454efb47 (git-gui (Win): make "Explore Working Copy" more robust, 2009-04-01), but has been broken in commit 21985a11 (git-gui: handle non-standard worktree locations, 2010-01-23) by accidentally replacing too much with a new variable. The problem can be reproduced when starting git-gui from within a subdirectory. The solution is to convert the path name, explorer.exe is invoked with, to a platform native name. Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Markus Heidelberg committed Feb 25, 2010 at 01:14 UTC 2e0cda658e08482b804718bfa0f3e64e7af17ea7
1 file changed +1 -1
git-gui.sh
+1 -1
@@ -2104,7 +2104,7 @@ proc do_explore {} {
2104 # freedesktop.org-conforming system is our best shot
2105 set explorer "xdg-open"
2106 }
2107 - eval exec $explorer $_gitworktree &
2107 + eval exec $explorer [list [file nativename $_gitworktree]] &
2108 }
2109
2110 set is_quitting 0