diff --git a/newt/downloader/downloader.go b/newt/downloader/downloader.go index bf88e884d..463af1d4e 100644 --- a/newt/downloader/downloader.go +++ b/newt/downloader/downloader.go @@ -947,7 +947,7 @@ func (gd *GithubDownloader) Clone(commit string, dstPath string) error { } if util.ShallowCloneDepth > 0 { - cmd = append(cmd, "--depth", strconv.Itoa(util.ShallowCloneDepth)) + cmd = append(cmd, "--depth", strconv.Itoa(util.ShallowCloneDepth), "--no-single-branch") } cmd = append(cmd, url, dstPath)