Skip to content
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

Fix: increase SHA-1 short version length #1092

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions scripts/version
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/sh

git describe --dirty --tags --long --always
#
# --abbrev=12 asks for at least 12 characters in the SHA-1 hash. The trick is
# that git might choose to output more if 10 are not enough to keep the value
# unique.
#
# This is a balance between having a predictable value and having something
# that is not too long, as this value gets displayed in a couple of places.
git describe --dirty --tags --long --always --abbrev=12
Loading