From f3c9957806e53e07de6c36da01736aa5bbbca2bf Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 15 Jan 2024 17:07:26 +0100 Subject: pkg/vcs: make git fetch calls more specific This should make syzkaller only fetch the commits relevant for further processing. Also, specifying the exact commit/branch name to fetch allows us to access commits from custom refs. Test the new behaviour and double-check that remote tags fetch was not broken. --- pkg/vcs/linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/vcs/linux.go') diff --git a/pkg/vcs/linux.go b/pkg/vcs/linux.go index 62319096d..98ae07cda 100644 --- a/pkg/vcs/linux.go +++ b/pkg/vcs/linux.go @@ -195,7 +195,7 @@ func (ctx *linux) PrepareBisect() error { if ctx.vmType != "gvisor" { // Some linux repos we fuzz don't import the upstream release git tags. We need tags // to decide which compiler versions to use. Let's fetch upstream for its tags. - err := ctx.git.fetchRemote("https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git") + err := ctx.git.fetchRemote("https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "") if err != nil { return fmt.Errorf("fetching upstream linux failed: %w", err) } -- cgit mrf-deployment