Skip to content

Commit

Permalink
fixed shorter date format
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdr committed Nov 14, 2024
1 parent 5404566 commit 9ff1767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preprocess/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fn extract_tags(doc: &Yaml) -> Option<Vec<String>> {
fn get_last_commit_date(repo_root: &Path, file_path: &Path) -> Option<String> {
let relative_path = file_path.strip_prefix(repo_root).ok()?;
let output = Command::new("git")
.args(&["log", "-1", "--date=iso", "--format=%cd", "--", &relative_path.to_string_lossy()])
.args(&["log", "-1", "--format=%cs", "--", &relative_path.to_string_lossy()])
.current_dir(repo_root)
.output()
.ok()?;
Expand Down

0 comments on commit 9ff1767

Please sign in to comment.