From f85fc02ccec66ac7020dd7704cccc314d243bbe1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 6 Jan 2024 22:40:57 +0100 Subject: [PATCH] Fix: git should be installed earlier in the update-components-cache step. --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9ba97735..c4ea3219 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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