summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-04-18 09:54:51 -0700
committerShawn O. Pearce <sop@google.com>2009-04-18 09:54:51 -0700
commitad3193a0e587073dee0edef46bdf24f6c6e09779 (patch)
tree84ed1894e6f590455ee361beb049c1c271c4e0e7 /main.py
parentb81ac9e65444d0f54d2b6dd24d20b74945c9a36a (diff)
downloadgit-repo-ad3193a0e587073dee0edef46bdf24f6c6e09779.tar.gz
Fix `repo --trace` to show ref and config loads
The value of the varible TRACE was copied during the import, which happens before the --trace option can be processed. So instead we now use a function to determine if the value is set, as the function can be safely copied early during import. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index df181835..740fb3a6 100755
--- a/main.py
+++ b/main.py
@@ -27,7 +27,7 @@ import os
27import re 27import re
28import sys 28import sys
29 29
30import git_command 30from trace import SetTrace
31from command import InteractiveCommand 31from command import InteractiveCommand
32from command import MirrorSafeCommand 32from command import MirrorSafeCommand
33from command import PagedCommand 33from command import PagedCommand
@@ -79,7 +79,7 @@ class _Repo(object):
79 gopts, gargs = global_options.parse_args(glob) 79 gopts, gargs = global_options.parse_args(glob)
80 80
81 if gopts.trace: 81 if gopts.trace:
82 git_command.TRACE = True 82 SetTrace()
83 if gopts.show_version: 83 if gopts.show_version:
84 if name == 'help': 84 if name == 'help':
85 name = 'version' 85 name = 'version'