mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-27 21:30:33 +00:00
pkg/vcs: fetch git tags when checking out particular commit
Fetch of a named remote does not seem to fetch all tags. This is a problem for linux-next as it contains lots of tags that are not on the main branch because of periodic rebases.
This commit is contained in:
parent
7da2392541
commit
0127e3baa7
@ -98,7 +98,7 @@ func (git *git) fetchRemote(repo string) error {
|
||||
repoHash := hash.String([]byte(repo))
|
||||
// Ignore error as we can double add the same remote and that will fail.
|
||||
runSandboxed(git.dir, "git", "remote", "add", repoHash, repo)
|
||||
_, err := runSandboxed(git.dir, "git", "fetch", repoHash)
|
||||
_, err := runSandboxed(git.dir, "git", "fetch", "-t", repoHash)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user