component/libgit2: apply patch for fix index has_dir_name check
patch for arbitrary code execution due to heap corruption in `git_index_add` see: https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 https://security-tracker.debian.org/tracker/CVE-2024-24577