Skip to content

Use consistent hash length#410

Open
dan-blanchard wants to merge 1 commit intopython-versioneer:masterfrom
dan-blanchard:dan/normalize_version_length
Open

Use consistent hash length#410
dan-blanchard wants to merge 1 commit intopython-versioneer:masterfrom
dan-blanchard:dan/normalize_version_length

Conversation

@dan-blanchard
Copy link
Copy Markdown

Fixes #156 by always using --abbrev=7 in git describe calls to ensure hashes are consistent.

I went with 7 characters, because that's also the length used when using git rev-parse --short HEAD when describe is not available.

This will make sure that the version strings generated by versioneer are consistent across different machines and environments.

(I recently ran into an issue with a development version of dask where the short hash varied between environments)

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.

fix number of digits used in abbreviated git commit hashes

1 participant