fix(git): check cache before context timeout in getOrCloneRepo by vmaerten · Pull Request #2669 · go-task/task

@vmaerten

When fetching remote git taskfiles, the timeout context is shared
across the entire operation including user prompt time. This caused
timeouts when processing includes after the user accepted the trust
prompt, even when the repository was already cloned.

By checking the cache before verifying the context, we allow cache
hits to succeed regardless of timeout state, since no network access
is needed for cached repositories.

@vmaerten marked this pull request as ready for review

January 30, 2026 21:36

@vmaerten vmaerten deleted the fix/git-remote-taskfile-timeout branch

February 15, 2026 13:46

vmaerten added a commit that referenced this pull request

Feb 15, 2026

Copilot AI pushed a commit to libor-m/task that referenced this pull request

Mar 27, 2026
…sk#2669)

Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>

Copilot AI pushed a commit to libor-m/task that referenced this pull request

Mar 27, 2026
Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>