fix(webicached): add --tags to git fetch

Bug fix:
- gittag: git fetch without --tags misses tags not reachable from
  any branch, causing stale version lists.
This commit is contained in:
AJ ONeal
2026-08-20 16:35:16 -06:00
parent 3b0648729f
commit aff26844bf
+1 -1
View File
@@ -91,7 +91,7 @@ func Fetch(ctx context.Context, gitURL, repoDir string) iter.Seq2[[]Entry, error
func ensureRepo(ctx context.Context, repoPath, gitURL string) error {
if _, err := os.Stat(repoPath); err == nil {
// Exists — fetch updates.
cmd := exec.CommandContext(ctx, "git", "--git-dir="+repoPath, "fetch")
cmd := exec.CommandContext(ctx, "git", "--git-dir="+repoPath, "fetch", "--tags")
cmd.Stderr = os.Stderr
return cmd.Run()
}