summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorJulian Ganz <neither@nut.email>2018-06-01 08:44:30 +0200
committerJulian Ganz <neither@nut.email>2018-06-01 13:40:55 +0200
commit05e891f1f1bad3e2729a2e3800b314d5b63d43eb (patch)
treed04fbebaee98fd6d06b6a5fb1db92206d78373fe /tests/diff/diffiter.c
parent771dfd1dd1c27a4693dfdfea521c07e72f456b29 (diff)
downloadlibgit2-05e891f1f1bad3e2729a2e3800b314d5b63d43eb.tar.gz
refdb_fs: test whether the base directory exists when globbing
This commit fixes a regression introduced by 20a2b02d9a1bcb4825ec49605146223c565dcacf The commit introduced an optimization for finding references using a glob: rather than iterating over all references and matching each one against the glob, we would iterate only over references within the directory common to all possible references which may match against the glob. However, contrary to the `ref/` directory, which was the previous entry point for the iteration, this directory may not exist. In this case, the optimization causes an error (`ENOENT`) rather than the iterator simply yielding no references. This patch fixes the regression by checkign for this specific case.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions