diff options
author | Markus Heidelberg <markus.heidelberg@web.de> | 2009-04-01 01:55:36 +0200 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2009-04-05 13:05:29 -0700 |
commit | 454efb47b6199f70ec7992ea4bf459f193a43bb7 (patch) | |
tree | da4224407b2368f74156c64842e81ab409cbddde | |
parent | c9498339a40566c736a85238c29fd45d63510abe (diff) | |
download | git-454efb47b6199f70ec7992ea4bf459f193a43bb7.tar.gz git-454efb47b6199f70ec7992ea4bf459f193a43bb7.tar.xz |
git-gui (Win): make "Explore Working Copy" more robust
Starting the Explorer from the git-gui menu "Explore Working Copy"
didn't work, when git-gui was started via Windows Explorer shell
extension (Git GUI Here) from a directory within the project.
The Explorer raised an error message like this:
Path "C:/somedir/worktree" is not available or not a directory
It worked when started from the project directory itself, because then
the path argument for the Explorer was just '.' (current directory)
without any problematic forward slashes.
To make it work, convert the path given as argument to explorer.exe to
its native format with backslashes.
Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-x | git-gui.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh index 259251ba1..e4a9230ea 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -1947,7 +1947,7 @@ proc do_explore {} { # freedesktop.org-conforming system is our best shot set explorer "xdg-open" } - eval exec $explorer [file dirname [gitdir]] & + eval exec $explorer [list [file nativename [file dirname [gitdir]]]] & } set is_quitting 0 |