t4014: abstract away SHA-1-specific constants
[gitweb.git] / serve.c
diff --git a/serve.c b/serve.c
index 3692dda801eff42e936be1ca0e76c3fbc188c340..a5a7b2f7dd243c9dda3a29eda37aca8f96c3f0a5 100644 (file)
--- a/serve.c
+++ b/serve.c
@@ -55,7 +55,7 @@ struct protocol_capability {
 static struct protocol_capability capabilities[] = {
        { "agent", agent_advertise, NULL },
        { "ls-refs", always_advertise, ls_refs },
-       { "fetch", always_advertise, upload_pack_v2 },
+       { "fetch", upload_pack_advertise, upload_pack_v2 },
 };
 
 static void advertise_capabilities(void)