Spotted on the cumin generated documentation. When creating the doc for the tag v2.0.0 the documentation ends up showing:
Cumin 0.1.dev2+g0c369cf documentation
https://doc.wikimedia.org/cumin/v2.0.0/
The reason is the job https://integration.wikimedia.org/ci/job/cumin-tox-tag-publish/ does:
git init git fetch --depth 2 --quiet git://contint1001.wikimedia.org/operations/software/cumin refs/tags/v2.0.0 git checkout FETCH_HEAD
That does grab the commit, but does not create a tag locally. According to git-fetch documentation, we should instead use the special refspec: tag v2.0.0 which would fetch the object AND create a local tag.
Repro
git init . git fetch --depth 2 --quiet https://gerrit.wikimedia.org/r/operations/software/cumin refs/tags/v2.0.0 git checkout -b tag FETCH_HEAD git tag && git log --all --decorate --oneline
Initialized empty Git repository in /tmp/bla/.git/ Switched to a new branch 'tag' 0c369cf (HEAD -> tag) CHANGELOG: add changelogs for release v2.0.0 3d4aa18 (grafted) Copyright notice: add 2018