Merge branch 'jt/http-fetch-trace2-report-name'

"git http-fetch" (which is rarely used) forgot to identify itself
in the trace2 output.

* jt/http-fetch-trace2-report-name:
  http-fetch: invoke trace2_cmd_name()
maint
Junio C Hamano 2022-12-26 11:42:04 +09:00
commit c099531b00
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
#include "walker.h"
#include "strvec.h"
#include "urlmatch.h"
#include "trace2.h"

static const char http_fetch_usage[] = "git http-fetch "
"[-c] [-t] [-a] [-v] [--recover] [-w ref] [--stdin | --packfile=hash | commit-id] url";
@ -137,6 +138,8 @@ int cmd_main(int argc, const char **argv)
if (nongit)
die(_("not a git repository"));

trace2_cmd_name("http-fetch");

git_config(git_default_config, NULL);

if (packfile) {