We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8472970 + 84bc608 commit e6db45cCopy full SHA for e6db45c
xtask/src/xtask.rs
@@ -70,7 +70,7 @@ fn gitrev(sh: &Shell) -> Result<String> {
70
/// but not second because, well, we're not going to build more than once a second.
71
#[context("Finding git timestamp")]
72
fn git_timestamp(sh: &Shell) -> Result<String> {
73
- let ts = cmd!(sh, "git show --format=%ct").read()?;
+ let ts = cmd!(sh, "git show -s --format=%ct").read()?;
74
let ts = ts.trim().parse::<i64>()?;
75
let ts = chrono::NaiveDateTime::from_timestamp_opt(ts, 0)
76
.ok_or_else(|| anyhow::anyhow!("Failed to parse timestamp"))?;
0 commit comments