Fix detection of dirty working copy with git
parent
7a463a2a06
commit
3b90861aa4
|
@ -93,8 +93,8 @@ MACRO(GET_DVCS_INFO)
|
||||||
DVCS_CALL("revision" "-" id -i)
|
DVCS_CALL("revision" "-" id -i)
|
||||||
ELSEIF(GIT_FOUND)
|
ELSEIF(GIT_FOUND)
|
||||||
DVCS_CALL("revision" "-" rev-parse --verify --short HEAD)
|
DVCS_CALL("revision" "-" rev-parse --verify --short HEAD)
|
||||||
DVCS_EXECUTE(dvcs_dirty_wc diff --shortstat)
|
DVCS_EXECUTE(dvcs_clean_wc diff-index --quiet HEAD)
|
||||||
IF(DEFINED dvcs_dirty_wc)
|
IF(NOT DEFINED dvcs_clean_wc)
|
||||||
MESSAGE(STATUS "DVCS: dirty working copy")
|
MESSAGE(STATUS "DVCS: dirty working copy")
|
||||||
SET(dvcs_revision ${dvcs_revision}+)
|
SET(dvcs_revision ${dvcs_revision}+)
|
||||||
SET(VERSION_DVCS ${VERSION_DVCS}+)
|
SET(VERSION_DVCS ${VERSION_DVCS}+)
|
||||||
|
|
Loading…
Reference in New Issue