summaryrefslogtreecommitdiff
path: root/tests/diff/patch.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-04-26 12:23:25 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2021-04-28 13:03:34 +0100
commitc15ed350bb95fa7b07a70c60212f55be169ad12e (patch)
tree46c4c32e0212417c66700a8bb53178515cf1f8e4 /tests/diff/patch.c
parent3589587d6dcd33d0d755886741d6ce22666cb000 (diff)
downloadlibgit2-c15ed350bb95fa7b07a70c60212f55be169ad12e.tar.gz
repo: validate repository paths
Ensure that a repository's path (at initialization or open time) is valid. On Windows systems, this means that the longest known path beneath the repository will fit within MAX_PATH: this is a lock file for a loose object within the repository itself. Other paths, like a very long loose reference, may fail to be opened after the repository is opened. These variable length paths will be checked when they are accessed themselves. This new functionality is done at open to prevent needlessly checking every file in the gitdir (eg, `MERGE_HEAD`) for its length when we could instead check once at repository open time.
Diffstat (limited to 'tests/diff/patch.c')
0 files changed, 0 insertions, 0 deletions