diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-01-15 17:07:26 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-01-17 09:28:36 +0000 |
| commit | f3c9957806e53e07de6c36da01736aa5bbbca2bf (patch) | |
| tree | e0e47ce0cb3ac17bc6df398bd7261984d1162f83 /pkg/vcs/linux.go | |
| parent | 974181fc9058dafde8c999ec3d450f684c375c34 (diff) | |
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.
Diffstat (limited to 'pkg/vcs/linux.go')
| -rw-r--r-- | pkg/vcs/linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |
