git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT GUI PATCH] git-gui: fix open explorer window on Windows 7
@ 2010-02-23 22:52 Heiko Voigt
  2010-02-24  0:14 ` Markus Heidelberg
  2010-02-24 12:15 ` [msysGit] [GIT GUI PATCH] git-gui: fix open explorer window on Windows 7 Pat Thoyts
  0 siblings, 2 replies; 13+ messages in thread
From: Heiko Voigt @ 2010-02-23 22:52 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Johannes Schindelin, git, msysGit Mailinglist

It seems that Windows 7's explorer is not capable to cope with paths
that contain forward slashes as path seperator. We thus substitute slash
with the platforms native backslash.

Signed-off-by: Heiko Voigt <heiko.voigt@mahr.de>
---
 git-gui/git-gui.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
index 9a9525d..ae45a12 100644
--- a/git-gui/git-gui.sh
+++ b/git-gui/git-gui.sh
@@ -2112,15 +2112,17 @@ proc do_git_gui {} {
 proc do_explore {} {
 	global _gitworktree
 	set explorer {}
+	set path $_gitworktree
 	if {[is_Cygwin] || [is_Windows]} {
 		set explorer "explorer.exe"
+		set path [list [string map {/ \\} $path]]
 	} elseif {[is_MacOSX]} {
 		set explorer "open"
 	} else {
 		# freedesktop.org-conforming system is our best shot
 		set explorer "xdg-open"
 	}
-	eval exec $explorer $_gitworktree &
+	eval exec $explorer $path &
 }
 
 set is_quitting 0
-- 
1.7.0.m5.rc2.15.g8ba4c

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-02-27 21:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23 22:52 [GIT GUI PATCH] git-gui: fix open explorer window on Windows 7 Heiko Voigt
2010-02-24  0:14 ` Markus Heidelberg
2010-02-24  6:22   ` Giuseppe Bilotta
2010-02-24 12:12     ` [msysGit] " Pat Thoyts
2010-02-25  0:14       ` [PATCH] git-gui: fix "Explore Working Copy" for Windows again Markus Heidelberg
2010-02-25 20:44         ` Heiko Voigt
2010-02-25 23:00           ` Pat Thoyts
2010-02-26  0:46           ` Johannes Schindelin
2010-02-27 21:14             ` Heiko Voigt
2010-02-24 12:15 ` [msysGit] [GIT GUI PATCH] git-gui: fix open explorer window on Windows 7 Pat Thoyts
2010-02-25 20:30   ` Heiko Voigt
2010-02-25 22:23     ` [msysGit] " Markus Heidelberg
2010-02-25 22:49       ` Pat Thoyts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).