summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-11-17 00:54:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-11-17 05:52:24 (GMT)
commit09116a1c31e3754cb18bb69ef057342cd7808935 (patch)
treecdfdb62eb8291aba5e274ca439b0647dee6295e5 /Documentation
parent5e1e6b93d024b5a01f4e957a2bedba899cb22f68 (diff)
downloadgit-09116a1c31e3754cb18bb69ef057342cd7808935.zip
git-09116a1c31e3754cb18bb69ef057342cd7808935.tar.gz
git-09116a1c31e3754cb18bb69ef057342cd7808935.tar.bz2
refs: loosen over-strict "format" check
The add_extra_ref() interface is used to add an extra-ref that is _not_ our ref for the purpose of helping auto-following of tags and reducing object transfer from remote repository, and they are typically formatted as a tagname followed by ^{} to make sure no valid refs match that pattern. In other words, these entries are deliberately formatted not to pass check-refname-format test. A recent series however added a test unconditionally to the add_ref() function that is called from add_extra_ref(). The check may be sensible for other two callsites of the add_ref() interface, but definitely is a wrong thing to do in add_extra_ref(). Disable it. Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions