upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-06-02 13:26:16 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-06-02 13:26:16 +0100
commite45b6284c54ed0e4ff7a9428c92087aa3f8e3cfc (patch)
tree6e636cb7e38a0d044c444fd8121e192d4df8fd32 /src/lib
parent4625958aa51d3bfc67f89e39fa28b843a1f0ac8e (diff)
fix: ignore dereferenced tags in state
as they are just noise
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/repo_state.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/repo_state.rs b/src/lib/repo_state.rs
index ebd8e7f..f061158 100644
--- a/src/lib/repo_state.rs
+++ b/src/lib/repo_state.rs
@@ -19,6 +19,8 @@ impl RepoState {
19 if ["refs/heads/", "refs/tags", "HEAD"] 19 if ["refs/heads/", "refs/tags", "HEAD"]
20 .iter() 20 .iter()
21 .any(|s| name.starts_with(*s)) 21 .any(|s| name.starts_with(*s))
22 // dont include dereferenced tags
23 && !name.ends_with("^{}")
22 { 24 {
23 if let Some(value) = tag.as_slice().get(1) { 25 if let Some(value) = tag.as_slice().get(1) {
24 if Oid::from_str(value).is_ok() || value.contains("ref: refs/") { 26 if Oid::from_str(value).is_ok() || value.contains("ref: refs/") {