Page MenuHomePhabricator

CI fetching tags should also create the local tag references
Open, Needs TriagePublic

Description

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.

Event Timeline

hashar created this task.Feb 5 2018, 10:19 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 5 2018, 10:19 AM