diff --git a/t/t-migrate-export.sh b/t/t-migrate-export.sh index 75e08fb36d..a88ad9fd84 100755 --- a/t/t-migrate-export.sh +++ b/t/t-migrate-export.sh @@ -455,7 +455,8 @@ begin_test "migrate export (--object-map)" setup_multiple_local_branches_tracked - output_dir=$(mktemp -d) + output_dir="$GIT_LFS_TEST_DIR/export-object-map-$(lfstest-genrandom --base64url 32)" + mkdir -p "$output_dir" git log --all --pretty='format:%H' > "${output_dir}/old_sha.txt" git lfs migrate export --everything --include="*" --object-map "${output_dir}/object-map.txt" diff --git a/t/t-migrate-import.sh b/t/t-migrate-import.sh index 8c4769631d..1170176152 100755 --- a/t/t-migrate-import.sh +++ b/t/t-migrate-import.sh @@ -935,7 +935,8 @@ begin_test "migrate import (--object-map)" setup_multiple_local_branches - output_dir=$(mktemp -d) + output_dir="$GIT_LFS_TEST_DIR/import-object-map-$(lfstest-genrandom --base64url 32)" + mkdir -p "$output_dir" git log --all --pretty='format:%H' > "${output_dir}/old_sha.txt" git lfs migrate import --everything --object-map "${output_dir}/object-map.txt"