Skip to content

Commit

Permalink
Strip the whitespace from git command (#597)
Browse files Browse the repository at this point in the history
For some reason, mockprogram.py prints an newline that raw git does not.  But
this should work for raw git too.
  • Loading branch information
bartlettroscoe committed Jan 4, 2024
1 parent 80191d4 commit 98750bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tribits/core/package_arch/TribitsGitRepoVersionInfo.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function(tribits_generate_single_repo_version_string gitRepoDir
WORKING_DIRECTORY ${gitRepoDir}
RESULT_VARIABLE gitCmndRtn
OUTPUT_VARIABLE gitCmndOutput
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE
)

if (NOT gitCmndRtn STREQUAL 0)
Expand All @@ -137,6 +138,7 @@ function(tribits_generate_single_repo_version_string gitRepoDir
WORKING_DIRECTORY ${gitRepoDir}
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 98750bb

Please sign in to comment.