]> asedeno.scripts.mit.edu Git - git.git/commitdiff
git-gui: fix "Explore Working Copy" for Windows again
authorMarkus Heidelberg <markus.heidelberg@web.de>
Thu, 25 Feb 2010 00:14:22 +0000 (01:14 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 30 Jul 2010 08:57:26 +0000 (09:57 +0100)
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>
git-gui.sh

index ec81b15595737915bcebf2a1d4ff0c5ffd1b28c4..ed8bbe180446b136a6584f4a770ba378e469896f 100755 (executable)
@@ -2104,7 +2104,7 @@ proc do_explore {} {
                # freedesktop.org-conforming system is our best shot
                set explorer "xdg-open"
        }
-       eval exec $explorer $_gitworktree &
+       eval exec $explorer [list [file nativename $_gitworktree]] &
 }
 
 set is_quitting 0