From 8966263b6b1d729dab0550c1ce731942770487bd Mon Sep 17 00:00:00 2001 From: Anderson Chauphan Date: Fri, 12 Jan 2024 10:58:42 -0700 Subject: [PATCH] Removed trailing whitespace for tribits_git_repo_sha1 git cmnd output (#597) Removed trailing whitespace to keep git command outputs consistent with other functions performing git commands and for the output to be more processable. --- tribits/core/package_arch/TribitsGitRepoVersionInfo.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tribits/core/package_arch/TribitsGitRepoVersionInfo.cmake b/tribits/core/package_arch/TribitsGitRepoVersionInfo.cmake index 36320b096..68373cca4 100644 --- a/tribits/core/package_arch/TribitsGitRepoVersionInfo.cmake +++ b/tribits/core/package_arch/TribitsGitRepoVersionInfo.cmake @@ -85,7 +85,9 @@ function(tribits_git_repo_sha1 gitRepoDir gitRepoSha1Out) execute_process( COMMAND ${GIT_EXECUTABLE} log -1 "--pretty=format:%H" WORKING_DIRECTORY ${gitRepoDir} - RESULT_VARIABLE gitCmndRtn OUTPUT_VARIABLE gitCmndOutput + RESULT_VARIABLE gitCmndRtn + OUTPUT_VARIABLE gitCmndOutput + OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE ) if (NOT gitCmndRtn STREQUAL 0)