Starting git-gui via Windows Explorer shell extension caused problems when not started from the project directory, but from a directory within the project: starting the Explorer from the git-gui menu "Explore Working Copy" didn't work then. Starting git-gui via Explorer shell extension from the .git directory didn't work at all. To make these things possible, "cd .." until we see .git/ Signed-off-by: Markus Heidelberg <markus.heidelberg@xxxxxx> --- windows/git-gui.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/windows/git-gui.sh b/windows/git-gui.sh index 53c3a94..16c4a2a 100644 --- a/windows/git-gui.sh +++ b/windows/git-gui.sh @@ -4,6 +4,9 @@ exec wish "$0" -- "$@" if { $argc >=2 && [lindex $argv 0] == "--working-dir" } { cd [lindex $argv 1] + while { ![file isdirectory .git] } { + cd .. + } set argv [lrange $argv 2 end] incr argc -2 } -- 1.6.2.1.409.gad7bf.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html