diff options
author | Shawn O. Pearce <sop@google.com> | 2009-04-18 09:54:51 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-04-18 09:54:51 -0700 |
commit | ad3193a0e587073dee0edef46bdf24f6c6e09779 (patch) | |
tree | 84ed1894e6f590455ee361beb049c1c271c4e0e7 /main.py | |
parent | b81ac9e65444d0f54d2b6dd24d20b74945c9a36a (diff) | |
download | git-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-x | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,7 +27,7 @@ import os | |||
27 | import re | 27 | import re |
28 | import sys | 28 | import sys |
29 | 29 | ||
30 | import git_command | 30 | from trace import SetTrace |
31 | from command import InteractiveCommand | 31 | from command import InteractiveCommand |
32 | from command import MirrorSafeCommand | 32 | from command import MirrorSafeCommand |
33 | from command import PagedCommand | 33 | from 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' |