Re: [PATCH v2] fast-import: disallow "." and ".." path components
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 27, 2024, 23:07 UTC
- Message-ID
- <xmqqr06ws2bu.fsf@gitster.g>
- In-Reply-To
- <20241127142458.GA1712@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I had the same thought, but I think the right code to be using is > verify_path(). That's what ultimately is used to let names into the > index from trees, from update-index, or from other tools like git-apply.
Yeah, I agree that is the right helper to use.