CI error "ambiguous argument 'origin/master'" when restoring cache
https://git.picodata.io/picodata/picodata/picodata/-/jobs/110262
$ # Restore cache # collapsed multi-line command
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Restoring cache from /shared-storage/picodata/cache.tar ... 00:03
Ok
5.3G target
95M .venv
253M picodata-webui/node_modules
# Restore cache
if [ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
echo "Skip restoring cache on the master branch"
elif git diff origin/"$CI_DEFAULT_BRANCH" "$CI_COMMIT_SHA" --submodule=short | grep '^[+-]Subproject commit'; then
echo "Skip restoring cache because submodule(s) changed"
elif [ -f "${CACHE_ARCHIVE}" ]; then
ci-log-section start "restore-cache" Restoring cache from ${CACHE_ARCHIVE} ...
tar -xf ${CACHE_ARCHIVE}
echo "Ok"
du -sh ${CACHE_PATHS} || true
ci-log-section end "restore-cache"
else
echo "No cache found"
fi
Объясните мне кто-нибудь почему так происходит и как починить
Edited by Yaroslav Dynnikov