Skip to content

Commit db22294

Browse files
committed
fix: fix git fetch when building branch
1 parent c7226d0 commit db22294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ func pullOutput(output, url, ref, targetDir string, targetGroup *Group) error {
670670

671671
{
672672
targetGroup.Property("fetching from", url)
673-
cmd := exec.Command("git", "-C", targetDir, "fetch", url)
673+
cmd := exec.Command("git", "-C", targetDir, "fetch", url, ref)
674674
var stderr bytes.Buffer
675675
cmd.Stdout = nil
676676
cmd.Stderr = &stderr

0 commit comments

Comments
 (0)