t4030: abstract away SHA-1-specific constants
[gitweb.git] / serve.c
diff --git a/serve.c b/serve.c
index 1cb5fb9b5b57de77b3b7d40301e67912b07a8849..a5a7b2f7dd243c9dda3a29eda37aca8f96c3f0a5 100644 (file)
--- a/serve.c
+++ b/serve.c
@@ -6,6 +6,7 @@
 #include "argv-array.h"
 #include "ls-refs.h"
 #include "serve.h"
+#include "upload-pack.h"
 
 static int always_advertise(struct repository *r,
                            struct strbuf *value)
@@ -54,6 +55,7 @@ struct protocol_capability {
 static struct protocol_capability capabilities[] = {
        { "agent", agent_advertise, NULL },
        { "ls-refs", always_advertise, ls_refs },
+       { "fetch", upload_pack_advertise, upload_pack_v2 },
 };
 
 static void advertise_capabilities(void)