]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-fetch.c
bisect: document "terms" subcommand more fully
[thirdparty/git.git] / http-fetch.c
index 58b394cd47f3f068177c622e927532497126e14c..258fec2068262c815ae68b08c8729b0bc60ee498 100644 (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";
@@ -55,7 +56,7 @@ static void fetch_single_packfile(struct object_id *packfile_hash,
        http_init(NULL, url, 0);
 
        preq = new_direct_http_pack_request(packfile_hash->hash, xstrdup(url));
-       if (preq == NULL)
+       if (!preq)
                die("couldn't create http pack request");
        preq->slot->results = &results;
        preq->index_pack_args = index_pack_args;
@@ -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) {