Fix: git should be installed earlier in the update-components-cache step.

This commit is contained in:
Fabio Manganiello 2024-01-06 22:40:57 +01:00
parent 771ecd9a5b
commit f85fc02cce
Signed by: blacklight
GPG Key ID: D90FBA7F76362774
1 changed files with 1 additions and 1 deletions

View File

@ -287,6 +287,7 @@ steps:
get_plugin('inspect').refresh_cache(force=True)
EOF
- apk add --update --no-cache git
- |
if [ -z "$(git status "$CACHEFILE" --porcelain)" ]; then
echo 'No changes to the components file'
@ -294,7 +295,6 @@ steps:
fi
# Backup the original git configuration before changing attributes
- apk add --update --no-cache git
- export GIT_CONF=$PWD/.git/config
- export TMP_GIT_CONF=/tmp/git.config.orig
- cp $GIT_CONF $TMP_GIT_CONF