Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2005-10-28 07:56:41 +0400
committerJunio C Hamano <junkio@cox.net>2005-10-29 09:57:01 +0400
commit1f5881bb5f4da97d0bb23024ae91079137326c7e (patch)
treef186d9ca5f3ddc48c30deb4333ff257ee84d57d4 /connect.c
parentc4c86f07d01bc4a05126b129f644e70dd9e244d0 (diff)
fix multi_ack.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/connect.c b/connect.c
index b8aea351b8..c2badc71aa 100644
--- a/connect.c
+++ b/connect.c
@@ -8,7 +8,7 @@
#include <arpa/inet.h>
#include <netdb.h>
-static char *server_capabilities = "";
+static char *server_capabilities = NULL;
/*
* Read all the refs from the other end
@@ -58,7 +58,8 @@ struct ref **get_remote_heads(int in, struct ref **list,
int server_supports(const char *feature)
{
- return strstr(feature, server_capabilities) != NULL;
+ return server_capabilities &&
+ strstr(server_capabilities, feature) != NULL;
}
int get_ack(int fd, unsigned char *result_sha1)