We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81af89a commit 43c3ed8Copy full SHA for 43c3ed8
tools/devhub/src/main.rs
@@ -6,7 +6,7 @@ use std::{fs::OpenOptions, path::PathBuf};
6
7
use deps::Dependencies;
8
use serde::{Deserialize, Serialize};
9
-use xshell::{Shell, cmd};
+use xshell::{cmd, Shell};
10
11
mod benchmarks;
12
mod build_metrics;
@@ -293,6 +293,7 @@ fn run_on_commit(
293
.unwrap_or_default()
294
.as_secs();
295
296
+ let git_commit = cmd!(sh, "git rev-parse {commit}").read()?;
297
let timestamp = cmd!(sh, "git log --pretty=format:%ct -1 {commit}")
298
.read()?
299
.parse()?;
@@ -301,7 +302,7 @@ fn run_on_commit(
301
302
timestamp,
303
metrics: vec![],
304
attributes: Attributes {
- git_commit: commit.to_string(),
305
+ git_commit,
306
wall_clock_timestamp,
307
},
308
};
0 commit comments