use AllTags fetch option

This commit is contained in:
Serge Zaitsev 2019-02-11 14:42:21 +01:00
parent 5a917d7c6f
commit 0868adad0a

View File

@ -235,6 +235,7 @@ func (g *gitVCS) commit(ctx context.Context, version Version) (*object.Commit, e
err = repo.FetchContext(ctx, &git.FetchOptions{
RemoteName: remoteName,
Auth: auth,
Tags: git.AllTags,
})
if err != nil && err != git.NoErrAlreadyUpToDate {
return nil, err