summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2011-09-15 23:10:43 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-10-05 13:45:31 -0700
commitdce4bab6567de7c458b334e029e3dedcab5f2648 (patch)
tree07996946ea2e23d0f26601782647d9eed5c6ac2d /builtin/fetch.c
parentresolve_ref(): expand documentation (diff)
downloadtgif-dce4bab6567de7c458b334e029e3dedcab5f2648.tar.xz
add_ref(): verify that the refname is formatted correctly
In add_ref(), verify that the refname is formatted correctly before adding it to the ref_list. Here we have to allow refname components that start with ".", since (for example) the remote protocol uses synthetic reference name ".have". So add a new REFNAME_DOT_COMPONENT flag that can be passed to check_refname_format() to allow leading dots. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
0 files changed, 0 insertions, 0 deletions