diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-12-26 11:42:04 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-12-26 11:42:04 +0900 |
| commit | c099531b001146662263869f7092d8598792dc27 (patch) | |
| tree | c0f22a06b9e2799deae5cc9c77140601607f8c22 | |
| parent | Merge branch 'sg/help-autocorrect-config-fix' (diff) | |
| parent | http-fetch: invoke trace2_cmd_name() (diff) | |
| download | git-c099531b001146662263869f7092d8598792dc27.tar.gz git-c099531b001146662263869f7092d8598792dc27.zip | |
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()
| -rw-r--r-- | http-fetch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c index 31bc5c7767..258fec2068 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -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) { |
