path: root/t/perf
diff options
authorJeff Hostetler <>2022-03-25 18:03:05 (GMT)
committerJunio C Hamano <>2022-03-25 23:04:17 (GMT)
commit08894d334969011394dee7ab1dde63176fc51830 (patch)
tree78c98ae97083ebb9f5bd6108ed9f068a4f11c063 /t/perf
parenta00cdff81a2d578405cf0f68072da07eee462b93 (diff)
t/perf: avoid copying builtin fsmonitor files into test repo
Do not copy any of the various fsmonitor--daemon files from the .git directory of the (GIT_PREF_REPO or GIT_PERF_LARGE_REPO) source repo into the test's trash directory. When perf tests start, they copy the contents of the source repo into the test's trash directory. If fsmonitor is running in the source repo, there may be control files, such as the IPC socket and/or fsmonitor cookie files. These should not be copied into the test repo. Unix domain sockets cannot be copied in the manner used by the test setup, so if present, the test setup fails. Cookie files are harmless, but we should avoid them. The builtin fsmonitor keeps all such control files/sockets in .git/fsmonitor--daemon*, so it is simple to exclude them. Signed-off-by: Jeff Hostetler <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/perf')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/perf/ b/t/perf/
index 407252b..932105c 100644
--- a/t/perf/
+++ b/t/perf/
@@ -78,7 +78,7 @@ test_perf_copy_repo_contents () {
for stuff in "$1"/*
case "$stuff" in
- */objects|*/hooks|*/config|*/commondir|*/gitdir|*/worktrees)
+ */objects|*/hooks|*/config|*/commondir|*/gitdir|*/worktrees|*/fsmonitor--daemon*)
cp -R "$stuff" "$repo/.git/" || exit 1