summaryrefslogtreecommitdiff
path: root/compat/regex/regexec.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-09-21 22:23:39 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-23 09:47:20 -0700
commit296743a7caf99f816cec4e6992690151fdfcdcd5 (patch)
tree81c8fcd0cd785d63079e25c7a4284cc05f25756f /compat/regex/regexec.c
parent39bf06adf96da25b87c9aa7d35a32ef3683eb4a4 (diff)
archive: load index before pathspec checks
git archive checks whether pathspec arguments match anything to avoid surprises due to typos and later loads the index to get attributes. This order was OK when these features were introduced by ba053ea96c (archive: do not read .gitattributes in working directory, 2009-04-18) and d5f53d6d6f (archive: complain about path specs that don't match anything, 2009-12-12). But when attribute matching was added to pathspec in b0db704652 (pathspec: allow querying for attributes, 2017-03-13), the pathspec checker in git archive did not support it fully, because it lacks the attributes from the index. Load the index earlier, before the pathspec check, to support attr pathspecs. Reported-by: Ronan Pigott <ronan@rjp.ie> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions