diff options
| author | murilo ijanc | 2025-11-20 17:20:38 -0300 |
|---|---|---|
| committer | murilo ijanc | 2025-11-20 17:20:38 -0300 |
| commit | 3d3c4f205c7eb49a4dbe1e26ff8354b918fae9f0 (patch) | |
| tree | 46d15d11ff2a5dbf7feb0733b6bdfb035d16c695 | |
| parent | efda331aa8bf3fb18f7cea38418e5952f02852f2 (diff) | |
| download | templates-3d3c4f205c7eb49a4dbe1e26ff8354b918fae9f0.tar.gz | |
Change to short commit and date
| -rw-r--r-- | cli/template/build.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/template/build.rs b/cli/template/build.rs index 52cbd9f..8174a53 100644 --- a/cli/template/build.rs +++ b/cli/template/build.rs @@ -2,13 +2,13 @@ use std::process::Command; fn main() { let git_hash = Command::new("git") - .args(["rev-parse", "HEAD"]) + .args(["rev-parse", "--short=6", "HEAD"]) .output() .map(|out| String::from_utf8_lossy(&out.stdout).trim().to_string()) .unwrap_or_else(|_| "unknown".into()); let git_date = Command::new("git") - .args(["show", "-s", "--format=%cI", "HEAD"]) + .args(["show", "-s", "--format=%cd", "--date=short", "HEAD"]) .output() .map(|out| String::from_utf8_lossy(&out.stdout).trim().to_string()) .unwrap_or_else(|_| "unknown".into()); |