Raymond Toy pushed to branch issue-464-lisp-version-uses-branch-name at cmucl / cmucl Commits: c4b2c55f by Raymond Toy at 2026-03-11T08:46:27-07:00 Change algorithm so we don't use --all anymore The new algorithm is: 1. If we're on the master branch, use plain "--dirty" to get a version. 2. If we're on a branch, just use the branch name. 3. Otherwise: 1. If it looks like snapshot-yyyy-mm, use yyyy-mm as the version. 2. If it 4 or more decimal digits, assume it's a pipeline and prepend with "ci-" 3. Just use "--dirty" - - - - - 1 changed file: - bin/git-version.sh Changes: ===================================== bin/git-version.sh ===================================== @@ -51,7 +51,7 @@ else # However, we have to remove everything before the first slash # which contains things like "tags/", "head/", or "pipelines/" # (from CI). - GIT_DESC="`git describe --all --dirty || git describe 2>/dev/null`" + GIT_DESC="`git describe --dirty || git describe 2>/dev/null`" GIT_HASH="`echo ${GIT_DESC} | sed 's;^[^/]*/;;' 2>/dev/null`" case "$GIT_HASH" in @@ -65,7 +65,7 @@ else # Use it as is. DEFAULT_VERSION="${GIT_HASH}" ;; - [0-9]*) + [0-9][0-9][0-9][0-9][0-9]*) # Assuming this is CI which seems to produce a githash like # "pipeline/<digits>". Make the version include "ci-" so we # know this was done via CI. View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/c4b2c55f1c10befec899fd54... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/c4b2c55f1c10befec899fd54... You're receiving this email because of your account on gitlab.common-lisp.net.