summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-07-22 13:58:46 -0700
committerJunio C Hamano <gitster@pobox.com>2011-07-22 13:58:46 -0700
commited16d0dbf11128e1f92b39a373a83442fa6d5051 (patch)
treeec11c9895bce0bc27018d55baf4d3f5fd5bd17c4 /remote-curl.c
parentd79bcd68056250d7c03bf9b12728ee2fd85a0ab3 (diff)
parentb421812b487da44b01773ef38789db1122bec61a (diff)
downloadgit-ed16d0dbf11128e1f92b39a373a83442fa6d5051.tar.gz
Merge branch 'maint'
* maint: doc/fast-import: clarify notemodify command Documentation: minor grammatical fix in rev-list-options.txt Documentation: git-filter-branch honors replacement refs remote-curl: Add a format check to parsing of info/refs git-config: Remove extra whitespaces
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/remote-curl.c b/remote-curl.c
index faaeda44a9..69831e931a 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -227,6 +227,8 @@ static struct ref *parse_info_refs(struct discovery *heads)
if (data[i] == '\t')
mid = &data[i];
if (data[i] == '\n') {
+ if (mid - start != 40)
+ die("%sinfo/refs not valid: is this a git repository?", url);
data[i] = 0;
ref_name = mid + 1;
ref = xmalloc(sizeof(struct ref) +