Skip to content

Fixed Git versioning from multiple lightweight tags - #308

Open
egormanga wants to merge 2 commits into
pdm-project:mainfrom
egormanga:version-git-highest-tag
Open

Fixed Git versioning from multiple lightweight tags#308
egormanga wants to merge 2 commits into
pdm-project:mainfrom
egormanga:version-git-highest-tag

Conversation

@egormanga

Copy link
Copy Markdown

When using the SCM Git version hook, if multiple lightweight tags are present on the current ref, git describe does not always select the latest one (it is impossible as they don't have timestamps).

Example:

$ git log
commit abcdef (tag: v1.1, tag: v1.2, HEAD)

$ git describe --tags
v1.1

$ git tag --points-to=HEAD
v1.1
v1.2

This introduces an additional git tag query that picks the highest version tag if multiple are found.

This is technically a breaking change that actually fixes unintuitive behavior on a rare edge case (e.g. automated tagging).

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for pdm-backend-docs ready!

Name Link
🔨 Latest commit 62bff3d
🔍 Latest deploy log https://app.netlify.com/projects/pdm-backend-docs/deploys/6a5797b29e42ac000896f516
😎 Deploy Preview https://deploy-preview-308--pdm-backend-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant