Skip to content

Commit

Permalink
Auto merge of #10579 - arlosi:git-length, r=ehuss
Browse files Browse the repository at this point in the history
Set cargo --version git hash length to 9

#10323 changed how cargo captures the current git commit hash, which resulted in platform-dependent commit hash lengths.
This change sets the length to 9, which is consistent with rustc and previous releases of cargo.

Fixes #10547
  • Loading branch information
bors committed Apr 20, 2022
2 parents 1f1823c + 50ce641 commit 304a9e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fn commit_info() {
.arg("-1")
.arg("--date=short")
.arg("--format=%H %h %cd")
.arg("--abbrev=9")
.output()
{
Ok(output) if output.status.success() => output,
Expand Down

0 comments on commit 304a9e6

Please sign in to comment.