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 7d2db57 commit a348cc3Copy full SHA for a348cc3
tools/get-scala-revision
@@ -17,6 +17,6 @@ devbase="d6f3184fc8"
17
# where NNNN is the number of commits since devbase, which
18
# is the merge-base of the most recent release and master.
19
# Presently hardcoded to reduce uncertainty, v2.9.1/master.
20
-commits=$(GIT_PAGER=cat git log --oneline $devbase..HEAD | wc -l)
21
-sha=$(git log -1 --abbrev-commit --abbrev=7 --format="%h")
22
-printf "dev-%s-g%s\n" $commits $sha
+commits=$(git --no-pager log --pretty=oneline $devbase..HEAD | wc -l)
+sha=$(git rev-list -n 1 HEAD)
+printf "dev-%s-g%s\n" $commits ${sha:0:7}
0 commit comments