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)
|
||||
ELSEIF(GIT_FOUND)
|
||||
DVCS_CALL("revision" "-" rev-parse --verify --short HEAD)
|
||||
DVCS_EXECUTE(dvcs_dirty_wc diff --shortstat)
|
||||
IF(DEFINED dvcs_dirty_wc)
|
||||
DVCS_EXECUTE(dvcs_clean_wc diff-index --quiet HEAD)
|
||||
IF(NOT DEFINED dvcs_clean_wc)
|
||||
MESSAGE(STATUS "DVCS: dirty working copy")
|
||||
SET(dvcs_revision ${dvcs_revision}+)
|
||||
SET(VERSION_DVCS ${VERSION_DVCS}+)
|
||||
|
|
Loading…
Reference in New Issue