Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faa7b44

Browse files
authored
Only check for contains "true" on worktree check in case anything else is printed with the command (#424)
1 parent bbefa23 commit faa7b44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

vergen-gitcl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rust-version = "1.81.0"
1111
name = "vergen-gitcl"
1212
readme = "README.md"
1313
repository = "https://github.com/rustyhorde/vergen"
14-
version = "1.0.7"
14+
version = "1.0.8"
1515

1616
[package.metadata.cargo-matrix]
1717
[[package.metadata.cargo-matrix.channel]]

vergen-gitcl/src/gitcl/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl Gitcl {
496496
Self::run_cmd("git rev-parse --is-inside-work-tree", path)
497497
.map(|output| {
498498
let stdout = String::from_utf8_lossy(&output.stdout);
499-
output.status.success() && stdout.trim() == "true"
499+
output.status.success() && stdout.contains("true")
500500
})
501501
.unwrap_or(false)
502502
}

vergen-gix/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rust-version = "1.81.0"
1111
name = "vergen-gix"
1212
readme = "README.md"
1313
repository = "https://github.com/rustyhorde/vergen"
14-
version = "1.0.8"
14+
version = "1.0.9"
1515

1616
[package.metadata.cargo-matrix]
1717
[[package.metadata.cargo-matrix.channel]]

0 commit comments

Comments
 (0)