fix: always fetch all repository tags #266

Merged
moritz merged 1 commits from moritz/abra:fetch_tags into main 2023-01-31 13:21:58 +00:00
1 changed files with 5 additions and 0 deletions

View File

@ -616,6 +616,11 @@ func EnsureUpToDate(recipeName string) error {
return err
}
fetchOpts := &git.FetchOptions{
Tags: git.AllTags,
}
repo.Fetch(fetchOpts)
opts := &git.PullOptions{
Force: true,
ReferenceName: branch,