Skip to content

Commit

Permalink
git-gui: fix "Explore Working Copy" for Windows again
Browse files Browse the repository at this point in the history
It has already been fixed in commit 454efb4 (git-gui (Win): make
"Explore Working Copy" more robust, 2009-04-01), but has been broken in
commit 21985a1 (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>
  • Loading branch information
Markus Heidelberg authored and Pat Thoyts committed Jul 30, 2010
1 parent b963d11 commit 2e0cda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e0cda6

Please sign in to comment.