diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-06-06 20:49:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-06-07 14:01:28 +0300 |
commit | 4c5fe206eff86e80a4c41977320db67e2779fc32 (patch) | |
tree | b1ee6bb7ed04f397ab4cdbc78ba22d1b52f1b760 /bpkg/fetch.hxx | |
parent | 00cda575c97494d1b6caf2d05ea8a1f8e848cd8a (diff) |
Verify symlinks in git repository worktree
Diffstat (limited to 'bpkg/fetch.hxx')
-rw-r--r-- | bpkg/fetch.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
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 |