Skip to content

Commit

Permalink
Add '--no-single-branch' to shallow clone for Git repos
Browse files Browse the repository at this point in the history
This is the same as fdc74bd but for "pure" Git repos.
  • Loading branch information
andrzej-kaczmarek authored and sjanc committed Nov 12, 2024
1 parent fdc74bd commit 37a65be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newt/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ func (gd *GitDownloader) 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, gd.Url, dstPath)
Expand Down

0 comments on commit 37a65be

Please sign in to comment.