Skip to content

Commit

Permalink
Bug fix for git log timestamp output parsing (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
CraZySacX authored May 24, 2023
1 parent 1ef5c5f commit 29ec1c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vergen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
name = "vergen"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
version = "8.2.0"
version = "8.2.1"

[package.metadata.cargo-all-features]
denylist = [
Expand Down
3 changes: 3 additions & 0 deletions vergen/src/feature/git/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,9 @@ impl EmitBuilder {
let output = run_cmd(cmd)?;
if output.status.success() {
let stdout = String::from_utf8_lossy(&output.stdout)
.lines()
.last()
.ok_or_else(|| anyhow!("invalid 'git log' output"))?
.trim()
.trim_matches('\'')
.to_string();
Expand Down

0 comments on commit 29ec1c8

Please sign in to comment.