Navigation Menu

Skip to content

Commit

Permalink
fix: possible error during worktree switch procedure due to lost erro…
Browse files Browse the repository at this point in the history
…r handling

Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
  • Loading branch information
distorhead committed Feb 18, 2022
1 parent 4d2a2d6 commit 82b1770
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/true_git/work_tree.go
Expand Up @@ -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:
Expand Down

0 comments on commit 82b1770

Please sign in to comment.