Skip to content

Commit 781fa82

Browse files
committed
Fix bare wortree to ignore errors
1 parent 44f1fdc commit 781fa82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

namer/git_bare.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ func determineBareWorktreePath(out string) string {
3131
func getBareWorktreePath(n *RealNamer, path string) (bool, string, error) {
3232
isGit, list, err := n.git.WorktreeList(path)
3333
if err != nil {
34-
return false, "", err
34+
return false, "", nil
3535
}
3636
if !isGit {
3737
return false, "", nil
3838
}
3939
barePath := determineBareWorktreePath(list)
4040
if barePath == "" {
41-
return false, "", err
41+
return false, "", nil
4242
}
4343
return true, barePath, nil
4444
}

0 commit comments

Comments
 (0)