submodule update: respect depth in subsequent fetches
[gitweb.git] / http-backend.c
index 2926d1f9e7ba67dfc0e4b4b47b682836c8b733d4..0d59499a51d7f1eecf5b28254b624a991f0e1db4 100644 (file)
@@ -484,9 +484,9 @@ static int show_head_ref(const char *refname, const struct object_id *oid,
                const char *target = resolve_ref_unsafe(refname,
                                                        RESOLVE_REF_READING,
                                                        unused.hash, NULL);
-               const char *target_nons = strip_namespace(target);
 
-               strbuf_addf(buf, "ref: %s\n", target_nons);
+               if (target)
+                       strbuf_addf(buf, "ref: %s\n", strip_namespace(target));
        } else {
                strbuf_addf(buf, "%s\n", oid_to_hex(oid));
        }
@@ -640,8 +640,6 @@ int cmd_main(int argc, const char **argv)
        char *cmd_arg = NULL;
        int i;
 
-       git_setup_gettext();
-
        set_die_routine(die_webcgi);
        set_die_is_recursing_routine(die_webcgi_recursing);