diff --git a/src/modules/git_commit.rs b/src/modules/git_commit.rs index bb49dc89..122c27b5 100644 --- a/src/modules/git_commit.rs +++ b/src/modules/git_commit.rs @@ -373,16 +373,7 @@ mod tests { .output()?; let git_tag = create_command("git")? - .args([ - "for-each-ref", - "--contains", - "HEAD", - "--sort=-taggerdate", - "--count=1", - "--format", - "%(refname:short)", - "refs/tags", - ]) + .args(["describe", "--tags"]) .current_dir(repo_dir.path()) .output()? .stdout; @@ -443,16 +434,7 @@ mod tests { .output()?; let git_tag = create_command("git")? - .args([ - "for-each-ref", - "--contains", - "HEAD", - "--sort=-taggerdate", - "--count=1", - "--format", - "%(refname:short)", - "refs/tags", - ]) + .args(["describe", "--tags"]) .current_dir(repo_dir.path()) .output()? .stdout;