mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-21 21:16:29 +00:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user