Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
ci: freebsd repartition script didn't copy .git directory
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 24 Mar 2024 07:41:14 +0000 (08:41 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 24 Mar 2024 07:41:14 +0000 (08:41 +0100)
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

src/tools/ci/gcp_freebsd_repartition.sh

index cc7f6bc35ef841438cdc1f7420491aeaa77b77ef..3adb8fb88eccfc79460fd492a15d94e64d583e48 100755 (executable)
@@ -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/