Skip to content

Commit e6db45c

Browse files
authored
Merge pull request #70 from cgwalters/fix-package-builds
xtask: Fix package builds
2 parents 8472970 + 84bc608 commit e6db45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/xtask.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn gitrev(sh: &Shell) -> Result<String> {
7070
/// but not second because, well, we're not going to build more than once a second.
7171
#[context("Finding git timestamp")]
7272
fn git_timestamp(sh: &Shell) -> Result<String> {
73-
let ts = cmd!(sh, "git show --format=%ct").read()?;
73+
let ts = cmd!(sh, "git show -s --format=%ct").read()?;
7474
let ts = ts.trim().parse::<i64>()?;
7575
let ts = chrono::NaiveDateTime::from_timestamp_opt(ts, 0)
7676
.ok_or_else(|| anyhow::anyhow!("Failed to parse timestamp"))?;

0 commit comments

Comments
 (0)