aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-26 11:42:04 +0900
committerJunio C Hamano <gitster@pobox.com>2022-12-26 11:42:04 +0900
commitc099531b001146662263869f7092d8598792dc27 (patch)
treec0f22a06b9e2799deae5cc9c77140601607f8c22
parentMerge branch 'sg/help-autocorrect-config-fix' (diff)
parenthttp-fetch: invoke trace2_cmd_name() (diff)
downloadgit-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.c3
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) {