projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show URL in the "Getting <foo> list" http-fetch messages
[git.git]
/
connect.c
diff --git
a/connect.c
b/connect.c
index
b8aea35
..
c2badc7
100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-8,7
+8,7
@@
#include <arpa/inet.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netdb.h>
-static char *server_capabilities =
""
;
+static char *server_capabilities =
NULL
;
/*
* Read all the refs from the other end
/*
* 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)
{
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)
}
int get_ack(int fd, unsigned char *result_sha1)