fix: remote git taskfile cloning and directory includes by vmaerten · Pull Request #2602 · go-task/task
added 2 commits
December 23, 2025 19:56…xplicit 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.
When a remote Taskfile includes another Taskfile using a directory path (e.g., `taskfile: ./website`), use fsext.SearchPath to properly resolve it by searching for Taskfile.yml inside the directory. This also simplifies the logic by delegating all path resolution to SearchPath, which handles both file and directory paths.
vmaerten
changed the title
fix(taskfile): omit ref param when cloning remote git repos without e…
fix: remote git taskfile cloning and directory includes
vmaerten
marked this pull request as ready for review
vmaerten
deleted the
fix/remote-git-default-branch
branch
Copilot AI pushed a commit to libor-m/task that referenced this pull request
Mar 27, 2026Copilot AI pushed a commit to libor-m/task that referenced this pull request
Mar 27, 2026This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters