Skip to content

Commit

Permalink
ENH: FindGit: Update extraction of WC_LAST_CHANGED_DATE to include time
Browse files Browse the repository at this point in the history
This commit improves feature originally introduced in b2b9f44 (ENH:
GIT_WC_INFO with date support for git only repository)
  • Loading branch information
jcfr committed Jun 24, 2021
1 parent b2bd0fb commit bfc1310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/FindGit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ if(GIT_EXECUTABLE)
WORKING_DIRECTORY ${dir}
OUTPUT_VARIABLE ${prefix}_show_output
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REGEX REPLACE "^([0-9][0-9][0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9]).*"
string(REGEX REPLACE "^([0-9][0-9][0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [-+][0-9][0-9][0-9][0-9]).*"
"\\1" ${prefix}_WC_LAST_CHANGED_DATE "${${prefix}_show_output}")

execute_process(COMMAND ${GIT_EXECUTABLE} rev-list HEAD --count
Expand Down

0 comments on commit bfc1310

Please sign in to comment.