forked from platypush/platypush
Fix: git should be installed earlier in the update-components-cache step.
This commit is contained in:
parent
771ecd9a5b
commit
f85fc02cce
1 changed files with 1 additions and 1 deletions
|
@ -287,6 +287,7 @@ steps:
|
||||||
get_plugin('inspect').refresh_cache(force=True)
|
get_plugin('inspect').refresh_cache(force=True)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
- apk add --update --no-cache git
|
||||||
- |
|
- |
|
||||||
if [ -z "$(git status "$CACHEFILE" --porcelain)" ]; then
|
if [ -z "$(git status "$CACHEFILE" --porcelain)" ]; then
|
||||||
echo 'No changes to the components file'
|
echo 'No changes to the components file'
|
||||||
|
@ -294,7 +295,6 @@ steps:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Backup the original git configuration before changing attributes
|
# Backup the original git configuration before changing attributes
|
||||||
- apk add --update --no-cache git
|
|
||||||
- export GIT_CONF=$PWD/.git/config
|
- export GIT_CONF=$PWD/.git/config
|
||||||
- export TMP_GIT_CONF=/tmp/git.config.orig
|
- export TMP_GIT_CONF=/tmp/git.config.orig
|
||||||
- cp $GIT_CONF $TMP_GIT_CONF
|
- cp $GIT_CONF $TMP_GIT_CONF
|
||||||
|
|
Loading…
Reference in a new issue