aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/git.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-01-04 15:00:58 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-04 15:00:58 +0100
commit0127e3baa7b78ca59d4b1ebb3482a270c6c1c2af (patch)
treec1bcaede62b04e0f6e9d5c77d5c08a2d3d092fdb /pkg/vcs/git.go
parent7da2392541a49c3f17b2e7d24e04b84d72b965fb (diff)
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.
Diffstat (limited to 'pkg/vcs/git.go')
-rw-r--r--pkg/vcs/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/vcs/git.go b/pkg/vcs/git.go
index 8a7cf4037..45a7e340c 100644
--- a/pkg/vcs/git.go
+++ b/pkg/vcs/git.go
@@ -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
}