diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-07-22 13:58:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-22 13:58:46 -0700 |
commit | ed16d0dbf11128e1f92b39a373a83442fa6d5051 (patch) | |
tree | ec11c9895bce0bc27018d55baf4d3f5fd5bd17c4 /remote-curl.c | |
parent | d79bcd68056250d7c03bf9b12728ee2fd85a0ab3 (diff) | |
parent | b421812b487da44b01773ef38789db1122bec61a (diff) | |
download | git-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.c | 2 |
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) + |