summaryrefslogtreecommitdiff
path: root/tests/diff/diff_helpers.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-09-17 18:12:05 -0400
committerEdward Thomson <ethomson@microsoft.com>2015-09-18 12:17:57 -0400
commit538dfc8816087f3952f499212f1564336b2cba87 (patch)
tree0e4558abd9a898dc4bb9906fafb5c9afefafd61b /tests/diff/diff_helpers.c
parente8ddd8d76c119903677b5d0c638c875023ae6784 (diff)
downloadlibgit2-538dfc8816087f3952f499212f1564336b2cba87.tar.gz
repository: only reserve repo dirs in the workdir
Check that the repository directory is beneath the workdir before adding it to the list of reserved paths. If it is not, then there is no possibility of checking out files into it, and it should not be a reserved word. This is a particular problem with submodules where the repo directory may be in the super's .git directory.
Diffstat (limited to 'tests/diff/diff_helpers.c')
0 files changed, 0 insertions, 0 deletions