## ---------------------------------------------------------------------
##
-## Copyright (C) 2013 - 2014 by the deal.II authors
+## Copyright (C) 2013 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
ENDIF()
EXECUTE_PROCESS(
- COMMAND ${GIT_EXECUTABLE} log -n 1 --pretty=format:"%H %h %ae"
+ COMMAND ${GIT_EXECUTABLE} log -n 1 --pretty=format:"%h"
WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTORY}
OUTPUT_VARIABLE _git_WC_INFO
RESULT_VARIABLE _result
MESSAGE(FATAL_ERROR "\nCould not retrieve git information. Bailing out.\n")
ENDIF()
-STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+) ([^\"]+)\""
- "\\1" _git_WC_REV "${_git_WC_INFO}")
-
-STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+) ([^\"]+)\""
- "\\2" _git_WC_SHORTREV "${_git_WC_INFO}")
-
-STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+) ([^\"]+)\""
- "\\3" _git_WC_AUTHOR "${_git_WC_INFO}")
+STRING(REGEX REPLACE "^\"([^ ]+)\""
+ "\\1" _git_WC_SHORTREV "${_git_WC_INFO}")
EXECUTE_PROCESS(
COMMAND ${GIT_EXECUTABLE} symbolic-ref HEAD
STRING(REGEX REPLACE "refs/heads/" ""
_git_WC_BRANCH "${_git_WC_BRANCH}")
-#
-# Write revision log:
-#
-
-FILE(WRITE ${CTEST_BINARY_DIRECTORY}/revision.log
-"###
-#
-# Git information:
-# Branch: ${_git_WC_BRANCH}
-# Commit: ${_git_WC_REV}
-# Author: ${_git_WC_AUTHOR}
-#
-###"
- )
-
IF(NOT "${_git_WC_BRANCH}" STREQUAL "")
SET(CTEST_BUILD_NAME "${CTEST_BUILD_NAME}-${_git_WC_BRANCH}")
ENDIF()