summaryrefslogtreecommitdiff
path: root/serve.c
diff options
context:
space:
mode:
Diffstat (limited to 'serve.c')
-rw-r--r--serve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serve.c b/serve.c
index db5ecfed2d..b3fe9b5126 100644
--- a/serve.c
+++ b/serve.c
@@ -201,7 +201,7 @@ static int receive_client_capability(const char *key)
const char *value;
const struct protocol_capability *c = get_capability(key, &value);
- if (!c || !c->advertise(the_repository, NULL))
+ if (!c || c->command || !c->advertise(the_repository, NULL))
return 0;
if (c->receive)