Skip to content

Commit

Permalink
Shorten the git commit message in the ci scripts (#2760)
Browse files Browse the repository at this point in the history
Depending on the terminal this might need user interaction if the commit message is long.

We are mostly interested in the sha anyway, so use a short description
  • Loading branch information
miscco authored Nov 11, 2024
1 parent eed8866 commit f305eea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/build_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ print_environment_details() {
TBB_ROOT

echo "Current commit is:"
git log -1 || echo "Not a repository"
git log -1 --format=short || echo "Not a repository"

if command -v nvidia-smi &> /dev/null; then
nvidia-smi
Expand Down
2 changes: 1 addition & 1 deletion ci/windows/build_common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Write-Host "CMAKE_BUILD_PARALLEL_LEVEL=$env:CMAKE_BUILD_PARALLEL_LEVEL"
Write-Host "CTEST_PARALLEL_LEVEL=$env:CTEST_PARALLEL_LEVEL"
Write-Host "CCCL_BUILD_INFIX=$env:CCCL_BUILD_INFIX"
Write-Host "Current commit is:"
Write-Host "$(git log -1)"
Write-Host "$(git log -1 --format=short)"
Write-Host "========================================"

cmake --version
Expand Down

0 comments on commit f305eea

Please sign in to comment.