-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Option to shallow clone but still fetch tags #338
Comments
We need this for auto-publish. Upstream issue: actions/checkout#338
Does this workaround work for you? #217 (comment) |
My experience is that |
@dlech came here with a similar problem. Using #217 (comment) only leads to the next issue:
I'm using
Seems that we'd still need a simple solution to fetch a "describable" history. |
Setting |
Sorry for the OT interruption. Came from googling and misread the issue. |
I'm looking for this feature as well (the ability to The default checkout seems to do:
and I think by omitting
It would be nice if there was an easy way to configure this type of checkout. |
@Scotchester @devinrsmith: |
We use the Python package setuptools-git-version for a variety of Python package automation steps and it runs
git describe --tags --long --dirty
in order to compare the HEAD commit with the most recent tag.With checkout@v2's default to shallow clones (a default that I agree is sensible), this no longer works, and we have to set
fetch-depth: 0
. This works just fine, but it would be nice if there were an option to do a shallow clone of the HEAD commit and also fetch tags.Thanks for considering.
The text was updated successfully, but these errors were encountered: