You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git plugin's track-tags option isn't enough for gnulib's git-version-gen #4
Essentially what I noticed (and implemented for https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/9009) is that to get every corner case covered (mainly git log -1, git log -1 ., git describe --dirty), you need to add all tree objects. Basically a shallow clone until the tag, with all blob objects removed (and with loose objects for reproducibility)
Activity
nanonyme commentedon Jan 26, 2022
Looks like simply writing .tarball-version is enough to convince git-version-gen to do nothing.
nanonyme commentedon Apr 19, 2022
Turns out there are bootstrap commands where this workaround doesn't really work.
nanonyme commentedon Aug 14, 2022
Reading https://github.com/coreutils/gnulib/blob/master/build-aux/git-version-gen#L157 it looks like it's mostly only using this to test that there is a commit. Git log doesn't need to show more things than the single commit.
abderrahim commentedon Aug 14, 2022
Essentially what I noticed (and implemented for https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/merge_requests/9009) is that to get every corner case covered (mainly
git log -1,git log -1 .,git describe --dirty), you need to add all tree objects. Basically a shallow clone until the tag, with all blob objects removed (and with loose objects for reproducibility)