summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-10 16:33:39 -0700
committerRussell Belfer <rb@github.com>2014-04-10 16:33:39 -0700
commit8f7bc6461b81499216b73881b07f5476c5085660 (patch)
tree7e1ab7e0464b0f0756a4fd2c4a5fab99266466b6 /src/commit.c
parentce2e82694a19b9994acaa9376bff81bc8e968637 (diff)
downloadlibgit2-8f7bc6461b81499216b73881b07f5476c5085660.tar.gz
Fix bug popping ignore files during wd iteration
There were a couple bugs in popping ignore files during iteration that could result in incorrect decisions be made and thus ignore files below the root either not being loaded correctly or not being popped at the right time. One bug was an off-by-one in comparing the path of the gitignore file with the path being exited during iteration. The second bug was not correctly truncating the path being tracked during traversal if there were no ignores on the list (i.e. when you have no .gitignore at the root, but do have some in contained directories).
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions