1
0
mirror of https://github.com/go-task/task.git synced 2025-12-26 00:31:38 +02:00
Files
task/taskfile/node_git_test.go
Valentin Maerten 618538f4a8 fix(taskfile): omit ref param when cloning remote git repos without explicit ref
When no ref is specified in a remote Taskfile URL, go-getter was being
passed ref=HEAD which git interprets as a literal branch name, causing
"Remote branch HEAD not found" errors.

Now we omit the ref parameter entirely when not specified, letting git
clone the remote's default branch.
2025-12-23 19:56:21 +01:00

8.1 KiB