Skip to content

Commit

Permalink
add last tag
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Feb 27, 2023
1 parent 4725170 commit d5c484c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shadow-rs"
version = "0.20.1"
version = "0.21.0"
authors = ["baoyachi <[email protected]>"]
edition = "2021"
description = "A build-time information stored in your rust project"
Expand Down
3 changes: 2 additions & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ fn command_git_status_file() -> String {
&[r#"^[A|M|D|R]"#],
&["{print $2}"],
)
.unwrap_or_default();
.unwrap_or_default();
filter_git_dirty_stage(dirty, stage)
}

Expand Down Expand Up @@ -473,6 +473,7 @@ mod tests {
let env_map = get_std_env();
let map = new_git(Path::new("./"), CiType::Github, &env_map);
for (k, v) in map {
println!("k:{},v:{:?}", k, v);
assert!(!v.desc.is_empty());
if !k.eq(TAG) && !k.eq(BRANCH) && !k.eq(GIT_STATUS_FILE) {
assert!(!v.v.is_empty());
Expand Down

0 comments on commit d5c484c

Please sign in to comment.