aboutsummaryrefslogtreecommitdiffstats
path: root/host/Modules/UHDVersion.cmake
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-19 18:44:05 -0800
committerJosh Blum <josh@joshknows.com>2011-01-19 18:44:05 -0800
commit373ddac69e8f94b8fc7731f67259ef8934caa6f2 (patch)
treeacf9db42d63f7c48fd7b432732811f5acb8cb7a3 /host/Modules/UHDVersion.cmake
parent72daf0902c8b8e404774a4e2d2657edf95be5e87 (diff)
downloaduhd-373ddac69e8f94b8fc7731f67259ef8934caa6f2.tar.gz
uhd-373ddac69e8f94b8fc7731f67259ef8934caa6f2.tar.bz2
uhd-373ddac69e8f94b8fc7731f67259ef8934caa6f2.zip
uhd: limit the git log to 1 entry when extracting version info
Diffstat (limited to 'host/Modules/UHDVersion.cmake')
-rw-r--r--host/Modules/UHDVersion.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/Modules/UHDVersion.cmake b/host/Modules/UHDVersion.cmake
index 1db75e906..c22286d59 100644
--- a/host/Modules/UHDVersion.cmake
+++ b/host/Modules/UHDVersion.cmake
@@ -34,7 +34,7 @@ IF(GIT_FOUND)
#grab the git log entry for the current head
EXECUTE_PROCESS(
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
- COMMAND ${GIT_EXECUTABLE} log HEAD~..HEAD --date=raw
+ COMMAND ${GIT_EXECUTABLE} log HEAD~..HEAD --date=raw -n1
OUTPUT_VARIABLE _git_log OUTPUT_STRIP_TRAILING_WHITESPACE
)