[Git][cmucl/cmucl][issue-464-lisp-version-uses-branch-name] Handle the git version returned for CI
Raymond Toy pushed to branch issue-464-lisp-version-uses-branch-name at cmucl / cmucl Commits: 88eb2721 by Raymond Toy at 2026-01-15T09:22:30-08:00 Handle the git version returned for CI On CI, git-version --all seems to return things like "pipeline/<digits>", so we need to recognize that as a valid version and use it. - - - - - 1 changed file: - bin/git-version.sh Changes: ===================================== bin/git-version.sh ===================================== @@ -54,6 +54,10 @@ else # The hash looks like the current branch with possibly more # stuff at the end. Use the hash as the version. DEFAULT_VERSION="${GIT_HASH}" + elif [ `expr "${GIT_HASH}" : "pipelines/[0-9]*"` != 0]; then + # Assuming this is CI which seems to produce a githash like + # "pipeline/<digits>". + DEFAULT_VERSION="${GIT_HASH}" fi if [ -z "$DEFAULT_VERSION" ]; then View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/88eb2721e2c86542fbe7d65a... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/88eb2721e2c86542fbe7d65a... You're receiving this email because of your account on gitlab.common-lisp.net.
participants (1)
-
Raymond Toy (@rtoy)