diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-03-24 08:41:14 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-03-24 08:41:14 +0100 |
commit | fc2d260c7e6236fe2447dad0f8415e72f4be66a2 (patch) | |
tree | de6650eac1d75c46f84e4ebfd9e92b27c875e74d /src | |
parent | 34768ee361656841a122f1c8d52a2ad753612feb (diff) | |
download | postgresql-fc2d260c7e6236fe2447dad0f8415e72f4be66a2.tar.gz postgresql-fc2d260c7e6236fe2447dad0f8415e72f4be66a2.zip |
ci: freebsd repartition script didn't copy .git directory
We need a slightly different "cp" incantation to make sure top-level
"dot" files, such as ".git", are also copied.
This is relevant for example if a script wants to execute a git
command. This currently does not happen, but it has come up while
testing other patches.
Reviewed-by: Tristan Partin <tristan@neon.tech>
Discussion: https://www.postgresql.org/message-id/flat/40e80f77-a294-4f29-a16f-e21bc7bc75fc%40eisentraut.org
Diffstat (limited to 'src')
-rwxr-xr-x | src/tools/ci/gcp_freebsd_repartition.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/ci/gcp_freebsd_repartition.sh b/src/tools/ci/gcp_freebsd_repartition.sh index cc7f6bc35ef..3adb8fb88ec 100755 --- a/src/tools/ci/gcp_freebsd_repartition.sh +++ b/src/tools/ci/gcp_freebsd_repartition.sh @@ -23,4 +23,4 @@ du -hs $CIRRUS_WORKING_DIR mv $CIRRUS_WORKING_DIR $CIRRUS_WORKING_DIR.orig mkdir $CIRRUS_WORKING_DIR mount -o noatime /dev/md1 $CIRRUS_WORKING_DIR -cp -r $CIRRUS_WORKING_DIR.orig/* $CIRRUS_WORKING_DIR/ +cp -a $CIRRUS_WORKING_DIR.orig/ $CIRRUS_WORKING_DIR/ |