Skip to content

Commit 6298015

Browse files
committed
Setup diagnostic script: Print branch name after commit
1 parent 3ab9d7f commit 6298015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tools/summarise_o2p_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838

3939
for repo in alidist O2 O2Physics; do
4040
[[ -d "${repo}" ]] || { echo "Directory ${repo} not found in the current directory."; continue; }
41-
echo "Last commit of ${repo}: $(cd "${repo}" && git log -n 1 --pretty="format:%ci %h")"
41+
echo "Current commit of ${repo}: $(cd "${repo}" && { commit="$(git log -n 1 --pretty="format:%ci %h")"; branch="$(git rev-parse --abbrev-ref HEAD)"; echo "$commit ($branch)"; })"
4242
done
4343

4444
# Package build info

0 commit comments

Comments
 (0)