gitk: Fix GIT_TRACE issues

Check if GIT_TRACE env var is set and unset it if it is. If the environment var GIT_TRACE=1 exists gitk will fail when trying to find gitdir: $ git rev-parse --git-dir trace: built-in: git 'rev-parse' '--git-dir' .git Other git commands will also show debug output hence not work as intended. Signed-off-by: Aske Olsson <askeolsson@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>

Aske Olsson committed May 10, 2012 at 12:13 UTC 0ae103574e5411be107c31a3390884f65fbaa0ef
1 file changed +5
gitk
+5
@@ -11532,6 +11532,11 @@ if {[catch {package require Tk 8.4} err]} {
11532 exit 1
11533 }
11534
11535 +# Unset GIT_TRACE var if set
11536 +if { [info exists ::env(GIT_TRACE)] } {
11537 + unset ::env(GIT_TRACE)
11538 +}
11539 +
11540 # defaults...
11541 set wrcomcmd "git diff-tree --stdin -p --pretty"
11542