diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-07-22 22:58:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-22 22:58:46 +0200 |
commit | ed16d0dbf11128e1f92b39a373a83442fa6d5051 (patch) | |
tree | ec11c9895bce0bc27018d55baf4d3f5fd5bd17c4 /remote-curl.c | |
parent | Update draft release notes to 1.7.7 (diff) | |
parent | doc/fast-import: clarify notemodify command (diff) | |
download | git-ed16d0dbf11128e1f92b39a373a83442fa6d5051.tar.xz git-ed16d0dbf11128e1f92b39a373a83442fa6d5051.zip |
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) + |