author | Carlos Martín Nieto <cmn@elego.de> | |
Wed, 11 Jan 2012 12:12:38 +0000 (13:12 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 12 Jan 2012 03:21:22 +0000 (19:21 -0800) | ||
commit | 0f544ee897ac2cc760f29d3568cc4295ca69fd1f | |
tree | 82e0062f4bab2d1a917bd030f14517c22e50c742 | tree | snapshot |
parent | 7b51c33b376d22195dba1c4e067180164fd35dbf | commit | diff |
archive: re-allow HEAD:Documentation on a remote invocation
The tightening done in (ee27ca4a: archive: don't let remote clients
get unreachable commits, 2011-11-17) went too far and disallowed
HEAD:Documentation as it would try to find "HEAD:Documentation" as a
ref.
Only DWIM the "HEAD" part to see if it exists as a ref. Once we're
sure that we've been given a valid ref, we follow the normal code
path. This still disallows attempts to access commits which are not
branch tips.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The tightening done in (ee27ca4a: archive: don't let remote clients
get unreachable commits, 2011-11-17) went too far and disallowed
HEAD:Documentation as it would try to find "HEAD:Documentation" as a
ref.
Only DWIM the "HEAD" part to see if it exists as a ref. Once we're
sure that we've been given a valid ref, we follow the normal code
path. This still disallows attempts to access commits which are not
branch tips.
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c | diff | blob | history |