From a31e67347a212266c52fbffe13ebc867d10273c3 Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Tue, 7 May 2024 10:13:59 +0200 Subject: [PATCH] Fetch only necessary commits for build --- cmd/bashbrew/git.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/bashbrew/git.go b/cmd/bashbrew/git.go index 9a424d8..4fffdf1 100644 --- a/cmd/bashbrew/git.go +++ b/cmd/bashbrew/git.go @@ -280,6 +280,7 @@ func (r Repo) fetchGitRepo(arch string, entry *manifest.Manifest2822Entry) (stri err := gitRemote.Fetch(&goGit.FetchOptions{ RefSpecs: []goGitConfig.RefSpec{goGitConfig.RefSpec(fetchString)}, Tags: goGit.NoTags, + Depth: 1, //Progress: os.Stdout, })