From 4c5fe206eff86e80a4c41977320db67e2779fc32 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 6 Jun 2022 20:49:18 +0300 Subject: Verify symlinks in git repository worktree --- bpkg/fetch.hxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bpkg/fetch.hxx') diff --git a/bpkg/fetch.hxx b/bpkg/fetch.hxx index 33e5d55..c077079 100644 --- a/bpkg/fetch.hxx +++ b/bpkg/fetch.hxx @@ -102,6 +102,13 @@ namespace bpkg const repository_location&, const dir_path&); + + // Verify that the symlinks target paths in the working tree are valid, + // relative, and none of them refer outside the repository directory. + // + void + git_verify_symlinks (const common_options&, const dir_path&); + // Fix up or revert the fixes (including in submodules, recursively) in a // working tree previously checked out by git_checkout() or // git_checkout_submodules(). Return true if any changes have been made to -- cgit v1.1