diff options
| author | Jeff Carr <[email protected]> | 2025-09-12 14:53:39 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-12 14:53:39 -0500 |
| commit | 6654dbb4102ba0f725f7d82b5f26a7288a68699d (patch) | |
| tree | c51a1b9e7c371832476271026665cb49309bdbc4 /reloadTags.go | |
| parent | 62e5fc396c560d47a351194da04ccec2d7b4f220 (diff) | |
tag handling is still badv0.0.125
Diffstat (limited to 'reloadTags.go')
| -rw-r--r-- | reloadTags.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/reloadTags.go b/reloadTags.go index ce25b0c..3665567 100644 --- a/reloadTags.go +++ b/reloadTags.go @@ -168,11 +168,16 @@ func (repo *Repo) NewestTag() *GitTag { } // this should just do is.Exists(".git/refs/heads/findname") +// this is a simple check and doesn't work all the time func (repo *Repo) LocalTagExists(findname string) bool { fname := filepath.Join(".git/refs/heads", findname) if repo.Exists(fname) { return true } + fname = filepath.Join(".git/refs/tags", findname) + if repo.Exists(fname) { + return true + } /* loop := repo.Tags.SortByRefname() for loop.Scan() { |
