summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/main.py b/main.py
index 47dcde19..2e1058d4 100755
--- a/main.py
+++ b/main.py
@@ -270,10 +270,14 @@ class _Repo:
270 self._PrintHelp(short=True) 270 self._PrintHelp(short=True)
271 return 1 271 return 1
272 272
273 run = lambda: self._RunLong(name, gopts, argv) or 0 273 git_trace2_event_log = EventLog()
274 run = (
275 lambda: self._RunLong(name, gopts, argv, git_trace2_event_log) or 0
276 )
274 with Trace( 277 with Trace(
275 "starting new command: %s", 278 "starting new command: %s [sid=%s]",
276 ", ".join([name] + argv), 279 ", ".join([name] + argv),
280 git_trace2_event_log.full_sid,
277 first_trace=True, 281 first_trace=True,
278 ): 282 ):
279 if gopts.trace_python: 283 if gopts.trace_python:
@@ -290,12 +294,11 @@ class _Repo:
290 result = run() 294 result = run()
291 return result 295 return result
292 296
293 def _RunLong(self, name, gopts, argv): 297 def _RunLong(self, name, gopts, argv, git_trace2_event_log):
294 """Execute the (longer running) requested subcommand.""" 298 """Execute the (longer running) requested subcommand."""
295 result = 0 299 result = 0
296 SetDefaultColoring(gopts.color) 300 SetDefaultColoring(gopts.color)
297 301
298 git_trace2_event_log = EventLog()
299 outer_client = RepoClient(self.repodir) 302 outer_client = RepoClient(self.repodir)
300 repo_client = outer_client 303 repo_client = outer_client
301 if gopts.submanifest_path: 304 if gopts.submanifest_path: