Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
remote-hg: add support to push URLs
[gitweb.git]
/
git-gui
/
macosx
/
AppMain.tcl
diff --git
a/git-gui/macosx/AppMain.tcl
b/git-gui/macosx/AppMain.tcl
index ddbe6334a258dae46b6c333d53590f3b920a9cab..738bdd03ed8a3940ae9bec362ddcfd16a3c48e9c 100644
(file)
--- a/
git-gui/macosx/AppMain.tcl
+++ b/
git-gui/macosx/AppMain.tcl
@@
-12,7
+12,9
@@
if {[file tail [lindex $argv 0]] eq {gitk}} {
} else {
set argv0 [file join $gitexecdir [file tail [lindex $argv 0]]]
set AppMain_source [file join $gitguilib git-gui.tcl]
- if {[pwd] eq {/}} {
+ if {[info exists env(PWD)]} {
+ cd $env(PWD)
+ } elseif {[pwd] eq {/}} {
cd $env(HOME)
}
}