From: Johannes Schindelin Date: Fri, 16 Feb 2007 04:23:35 GMT Subject: Re: GIT 1.5.0 binary installer available. Message-ID: In-Reply-To: <20070215201249.GA27526@spearce.org> Hi, On Thu, 15 Feb 2007, Shawn O. Pearce wrote: > Johannes Schindelin wrote: > > I already made a minimal change to git-gui so you can choose the directory > > to start from. > > Do post, when ready. ;-) ATM it looks like this: -- snip -- git-gui/git-gui.sh | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh index f5010dd..ed5cd82 100755 --- a/git-gui/git-gui.sh +++ b/git-gui/git-gui.sh @@ -291,6 +291,11 @@ proc ask_popup {msg} { ## ## repository setup +if { [is_Windows] && ![is_Cygwin] } { + set repo_dir [tk_chooseDirectory -title "Choose a Git repository" -mustexist 1] + cd $repo_dir +} + if { [catch {set _gitdir $env(GIT_DIR)}] && [catch {set _gitdir [exec git rev-parse --git-dir]} err]} { catch {wm withdraw .} -- snap -- However, I am still wondering what to make of the silly behaviour I observed earlier: the PATH was forgotten either by "sh" being called from "cmd", or by "wish84" being called from "sh". But the strangest part about it: if I replaced the program names with their absolute path, then the command line options would _not_ be ignored. Strange. If I get that fsck up fixed, I'd like to work with Han-Wen on enhancing his installer (which is nice!) with wish, bash, perl, and a shortcut to git-gui in Start Menu/Git/Git GUI. BTW any news on the integration of gitk in git-gui? Ciao, Dscho