mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-16 11:02:37 -05:00
t/perf: avoid copying builtin fsmonitor files into test repo
Do not try to copy a fsmonitor--daemon socket from the current development directory into the test trash directory. When we run the perf suite without an explicit source repo set, we copy of the current $GIT_DIR into the test trash directory. Unix domain sockets cannot be copied in that manner, so the test setup fails. Additionally, omit any other fsmonitor--daemon temp files inside the $GIT_DIR directory. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
5f1e856c35
commit
e88aa1349b
@@ -74,7 +74,7 @@ test_perf_copy_repo_contents () {
|
||||
for stuff in "$1"/*
|
||||
do
|
||||
case "$stuff" in
|
||||
*/objects|*/hooks|*/config|*/commondir|*/gitdir|*/worktrees)
|
||||
*/objects|*/hooks|*/config|*/commondir|*/gitdir|*/worktrees|*/fsmonitor--daemon*)
|
||||
;;
|
||||
*)
|
||||
cp -R "$stuff" "$repo/.git/" || exit 1
|
||||
|
||||
Reference in New Issue
Block a user