Skip to content
Permalink
Browse files
fix: possible error during worktree switch procedure due to lost erro…
…r handling

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed Feb 18, 2022
1 parent 4d2a2d6 commit 82b177070086085a872e566cbf49ea2696f74604
Showing with 1 addition and 0 deletions.
  1. +1 −0 pkg/true_git/work_tree.go
@@ -77,6 +77,7 @@ func prepareWorkTree(ctx context.Context, repoDir, workTreeCacheDir string, comm
_, err := os.Stat(workTreeDir)
switch {
case os.IsNotExist(err):

case err != nil:
return "", fmt.Errorf("error accessing %q: %s", workTreeDir, err)
default:

0 comments on commit 82b1770

Please sign in to comment.