ci: set GIT_COMMITTER_DATE in a locale-agnostic format
When adding patches wit git-am create the date format for GIT_COMMITTER_DATE in a locale-agnostic format, this avoids potential issues when running the scripts locally with a non-English locale, e.g.: ----------------------------------------------------------------------- ++ GIT_COMMITTER_DATE='gio 1 gen 1970, 01:00:00, CET' ++ git am fatal: invalid date format: gio 1 gen 1970, 01:00:00, CET ----------------------------------------------------------------------- Reviewed-by: Eric Engestrom <None> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30895>
This commit is contained in:

committed by
Marge Bot

parent
195663484e
commit
47558b718a
@@ -30,7 +30,7 @@ angle_patch_files=(
|
||||
)
|
||||
for patch in "${angle_patch_files[@]}"; do
|
||||
echo "Apply patch to ANGLE from ${patch}"
|
||||
GIT_COMMITTER_DATE=$(date -d@0) git am < "${ANGLE_PATCH_DIR}/${patch}"
|
||||
GIT_COMMITTER_DATE="$(LC_TIME=C date -d@0)" git am < "${ANGLE_PATCH_DIR}/${patch}"
|
||||
done
|
||||
|
||||
{
|
||||
|
4
.gitlab-ci/container/build-deqp.sh
Normal file → Executable file
4
.gitlab-ci/container/build-deqp.sh
Normal file → Executable file
@@ -133,14 +133,14 @@ do
|
||||
PATCH_URL="https://github.com/KhronosGroup/VK-GL-CTS/commit/$commit.patch"
|
||||
echo "Apply patch to ${DEQP_API} CTS from $PATCH_URL"
|
||||
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 $PATCH_URL | \
|
||||
GIT_COMMITTER_DATE=$(date -d@0) git am -
|
||||
GIT_COMMITTER_DATE=$(LC_TIME=C date -d@0) git am -
|
||||
done
|
||||
|
||||
cts_patch_files="${prefix}_cts_patch_files[@]"
|
||||
for patch in "${!cts_patch_files}"
|
||||
do
|
||||
echo "Apply patch to ${DEQP_API} CTS from $patch"
|
||||
GIT_COMMITTER_DATE=$(date -d@0) git am < $OLDPWD/.gitlab-ci/container/patches/$patch
|
||||
GIT_COMMITTER_DATE=$(LC_TIME=C date -d@0) git am < $OLDPWD/.gitlab-ci/container/patches/$patch
|
||||
done
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user