Skip to content
Snippets Groups Projects
Commit e886e98d authored by Douglas Araujo's avatar Douglas Araujo
Browse files

Improve Git diff file generation by avoiding 'touch' fallback

parent 7a01e8b4
No related branches found
No related tags found
1 merge request!203E3-1732: Build infos
Pipeline #218564 passed
...@@ -68,7 +68,11 @@ build: consistency_checks checkout prebuild db_internal ...@@ -68,7 +68,11 @@ build: consistency_checks checkout prebuild db_internal
@echo "wrapper_url: '$(${E3_MODULE_NAME}_E3_GIT_URL)'" > ${COMMON_DIR}/${METAFILE} @echo "wrapper_url: '$(${E3_MODULE_NAME}_E3_GIT_URL)'" > ${COMMON_DIR}/${METAFILE}
@echo "wrapper_git_ref: '$(${E3_MODULE_NAME}_E3_GIT_DESC)'" >> ${COMMON_DIR}/${METAFILE} @echo "wrapper_git_ref: '$(${E3_MODULE_NAME}_E3_GIT_DESC)'" >> ${COMMON_DIR}/${METAFILE}
@echo "Generating Git diff file ${COMMON_DIR}/${BUILD_DIFF_FILE}" @echo "Generating Git diff file ${COMMON_DIR}/${BUILD_DIFF_FILE}"
@git diff > ${COMMON_DIR}/${BUILD_DIFF_FILE} || touch ${COMMON_DIR}/${BUILD_DIFF_FILE} @if git rev-parse --is-inside-work-tree > /dev/null 2>&1; then \
git diff > ${COMMON_DIR}/${BUILD_DIFF_FILE}; \
else \
> ${COMMON_DIR}/${BUILD_DIFF_FILE}; \
fi
## Run module-specific commands before building ## Run module-specific commands before building
prebuild: consistency_checks prebuild: consistency_checks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment