Error: phase build on image app stage install handler failed: cannot prepare worktree: unable to switch work tree /home/gitlab-runner/.werf/local_cache/git_worktrees/6/local/X/worktree to commit X: git reset failed: exit status 128
fatal: not a git repository: /home/gitlab-runner/builds/X/.git/worktrees/worktree2
Workaround: remove ~/.werf/local_cache and recreate git-worktree of the project.
Possible reason: broken state of git-worktree of the project due to removal of git-worktree of the project without cleaning up ~/.werf/local_cache/git_worktrees. Need more research to find the reason.
Workaround: remove
~/.werf/local_cache
and recreate git-worktree of the project.Possible reason: broken state of git-worktree of the project due to removal of git-worktree of the project without cleaning up
~/.werf/local_cache/git_worktrees
. Need more research to find the reason.