Skip to content

Commit af54033

Browse files
committed
Auto merge of #1134 - tommyip:master, r=Diggsey
Use same precision as rustc for commit sha Part of rust-lang/rust#39635
2 parents b0d3242 + 030d644 commit af54033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn commit_info() -> String {
3535

3636
fn commit_hash() -> Result<String, Ignore> {
3737
Ok(try!(String::from_utf8(try!(Command::new("git")
38-
.args(&["rev-parse", "--short", "HEAD"])
38+
.args(&["rev-parse", "--short=9", "HEAD"])
3939
.output())
4040
.stdout)))
4141
}

0 commit comments

Comments
 (0)