fix: if git is not installed/errors out, use fallback value for branch/commit
This commit is contained in:
parent
75d1d78714
commit
6fa720c44e
@ -24,9 +24,9 @@ cDefinitions:
|
|||||||
- STM32H7
|
- STM32H7
|
||||||
- USE_HAL_DRIVER
|
- USE_HAL_DRIVER
|
||||||
- FTCAN_NUM_FILTERS=32
|
- FTCAN_NUM_FILTERS=32
|
||||||
- COMMIT_HASH='"$(shell git describe --always --dirty --abbrev=8)"'
|
- COMMIT_HASH='"$(shell git describe --always --dirty --abbrev=8 2>/dev/null || echo unknown)"'
|
||||||
- COMMIT_BRANCH='"$(shell git rev-parse --abbrev-ref HEAD)"'
|
- COMMIT_BRANCH='"$(shell git rev-parse --abbrev-ref HEAD 2>/dev/null || echo unknown)"'
|
||||||
- COMPILE_DATE='"$(shell date +'%Y-%m-%d %H:%M:%S')"'
|
- COMPILE_DATE='"$(shell date "+%Y-%m-%d %H:%M:%S")"'
|
||||||
|
|
||||||
cxxDefinitions: []
|
cxxDefinitions: []
|
||||||
asDefinitions: []
|
asDefinitions: []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user