Skip to content

Commit

Permalink
Removed trailing whitespace for tribits_git_repo_sha1 git cmnd output (
Browse files Browse the repository at this point in the history
…#597)

Removed trailing whitespace to keep git command outputs consistent with other
functions performing git commands and for the output to be more processable.
  • Loading branch information
achauphan committed Jan 12, 2024
1 parent dce52b6 commit 2374542
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tribits/core/package_arch/TribitsGitRepoVersionInfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2374542

Please sign in to comment.