Skip to content

GitLab workaround, for shallow clone #83

@pfbuxton

Description

@pfbuxton

Hello,

By default GitLab does a shallow checkout within runners, see GitLab documentation on runners

Once this number of commits is reached it is not possible to figure out which tag the commit belongs to.

git describe
fatal: No tags can describe 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

This can be fixed by adding the following to .gitlab-ci.yml:

variables:
  GIT_DEPTH: 0

Might be worth adding to documentation?

btw- setuptools-git-versioning is an amazing project ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions