mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Fix preprocess code size script
This commit is contained in:
parent
7a7c20d49e
commit
f2c4445621
1 changed files with 2 additions and 2 deletions
|
@ -45,13 +45,13 @@ if [[ "${GENERATE_ONLY}" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git remote add target "${CI_MERGE_REQUEST_SOURCE_PROJECT_URL:-https://gitlab.com/OpenMW/openmw.git}"
|
git remote add target "${CI_MERGE_REQUEST_PROJECT_URL:-https://gitlab.com/OpenMW/openmw.git}"
|
||||||
|
|
||||||
TARGET_BRANCH="${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-master}"
|
TARGET_BRANCH="${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-master}"
|
||||||
|
|
||||||
git fetch target "${TARGET_BRANCH:?}"
|
git fetch target "${TARGET_BRANCH:?}"
|
||||||
|
|
||||||
BASE_VERSION=$(git merge-base "target/${TARGET_BRANCH:?}" HEAD)
|
BASE_VERSION=$(git merge-base "target/${TARGET_BRANCH:?}" "${VERSION:?}")
|
||||||
|
|
||||||
# Save and use scripts from this commit because they may be absent or different in the base version
|
# Save and use scripts from this commit because they may be absent or different in the base version
|
||||||
cp scripts/preprocessed_file_size_stats.py scripts/preprocessed_file_size_stats.bak.py
|
cp scripts/preprocessed_file_size_stats.py scripts/preprocessed_file_size_stats.bak.py
|
||||||
|
|
Loading…
Reference in a new issue