diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-19 18:44:05 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-19 18:44:05 -0800 |
commit | 373ddac69e8f94b8fc7731f67259ef8934caa6f2 (patch) | |
tree | acf9db42d63f7c48fd7b432732811f5acb8cb7a3 /host | |
parent | 72daf0902c8b8e404774a4e2d2657edf95be5e87 (diff) | |
download | uhd-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')
-rw-r--r-- | host/Modules/UHDVersion.cmake | 2 |
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 ) |