summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c949833)
raw | patch | inline | side by side (parent: c949833)
author | Markus Heidelberg <markus.heidelberg@web.de> | |
Tue, 31 Mar 2009 23:55:36 +0000 (01:55 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 5 Apr 2009 20:05:29 +0000 (13:05 -0700) |
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>
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>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 259251ba198bd8dbbb0530cab3bee4036308bd65..e4a9230ea075847e30db86e5044f5cb85b0a9ff0 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
# 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