Skip to content

Commit 304a9e6

Browse files
committed
Auto merge of #10579 - arlosi:git-length, r=ehuss
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
2 parents 1f1823c + 50ce641 commit 304a9e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ fn commit_info() {
5353
.arg("-1")
5454
.arg("--date=short")
5555
.arg("--format=%H %h %cd")
56+
.arg("--abbrev=9")
5657
.output()
5758
{
5859
Ok(output) if output.status.success() => output,

0 commit comments

Comments
 (0)