summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2019-08-22 19:22:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-08-22 19:32:59 (GMT)
commit58166c2e9d9a3bbf6eee9e3e8710d92985e6edab (patch)
tree0304ee943b53c30b4c03db34a796ce9890853c38 /path.c
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 (diff)
downloadgit-58166c2e9d9a3bbf6eee9e3e8710d92985e6edab.zip
git-58166c2e9d9a3bbf6eee9e3e8710d92985e6edab.tar.gz
git-58166c2e9d9a3bbf6eee9e3e8710d92985e6edab.tar.bz2
t0021: make sure clean filter runs
In t0021.15 one of the things we are checking is that the clean filter is run when checking out empty-branch. The clean filter needs to be run to make sure there are no modifications on the file system for the test.r file, and thus it isn't dangerous to overwrite it. However in the current test setup it is not always necessary to run the clean filter, and thus the test sometimes fails, as debug.log isn't written. This happens when test.r has an older mtime than the index itself. That mtime is also recorded as stat data for test.r in the index, and based on the heuristic we're using for index entries, git correctly assumes this file is up-to-date. Usually this test succeeds because the mtime of test.r is the same as the mtime of the index. In this case test.r is racily clean, so git actually checks the contents, for which the clean filter is run. Fix the test by updating the mtime of test.r, so git is forced to check the contents of the file, and the clean filter is run as the test expects. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
0 files changed, 0 insertions, 0 deletions