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