We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab9d7f commit 46428f7Copy full SHA for 46428f7
docs/tools/summarise_o2p_setup.sh
@@ -38,7 +38,12 @@ fi
38
39
for repo in alidist O2 O2Physics; do
40
[[ -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")"
+ cd "${repo}" || { echo "Failed for enter ${repo}"; return 1; }
42
+ commit="$(git log -n 1 --pretty="format:%ci %h")"
43
+ branch="$(git rev-parse --abbrev-ref HEAD)"
44
+ git diff --quiet && status="clean" || status="modified"
45
+ cd - > /dev/null || { echo "Failed for leave ${repo}"; return 1; }
46
+ echo "Current commit of ${repo}: $commit (branch $branch, $status)"
47
done
48
49
# Package build info
0 commit comments