Skip to content

Commit a348cc3

Browse files
committed
More on get-scala-revision.
Now that I've resorted to building git 1.5.4, I can stop trying to reverse engineer it through jenkins. This implementation feels winnerish.
1 parent 7d2db57 commit a348cc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/get-scala-revision

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ devbase="d6f3184fc8"
1717
# where NNNN is the number of commits since devbase, which
1818
# is the merge-base of the most recent release and master.
1919
# 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
20+
commits=$(git --no-pager log --pretty=oneline $devbase..HEAD | wc -l)
21+
sha=$(git rev-list -n 1 HEAD)
22+
printf "dev-%s-g%s\n" $commits ${sha:0:7}

0 commit comments

Comments
 (0)