diff --git a/internal/cmd/fetcher/main.go b/internal/cmd/fetcher/main.go index 6ee98d5e8..b4c104dc2 100644 --- a/internal/cmd/fetcher/main.go +++ b/internal/cmd/fetcher/main.go @@ -183,7 +183,7 @@ func recreateSwiftPackageResolved(ctx context.Context, plugin createdPlugin) (re }() // Execute the git clone command, cloning to the tmpDir - cmd := exec.CommandContext(ctx, "sh", "-c", gitCloneCmd, "--", tmpDir) + cmd := exec.CommandContext(ctx, "sh", "-c", gitCloneCmd+" -- "+tmpDir) //nolint:gosec // We control the arguments here. cmd.Dir = versionDir cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr