mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
Fix preprocess code size script
This commit is contained in:
parent
7a7c20d49e
commit
f2c4445621
@ -45,13 +45,13 @@ if [[ "${GENERATE_ONLY}" ]]; then
|
||||
exit 0
|
||||
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}"
|
||||
|
||||
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
|
||||
cp scripts/preprocessed_file_size_stats.py scripts/preprocessed_file_size_stats.bak.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user