replace removeLink with removeFile
same reasoning as in commit 5cc8d9d03b
This commit is contained in:
parent
90eb1e2da6
commit
f8bb9a8734
9 changed files with 16 additions and 21 deletions
|
@ -112,9 +112,8 @@ fixupUnusualRepos r@(Repo { location = l@(Local { worktree = Just w, gitdir = d
|
|||
|
||||
replacedotgit = whenM (doesFileExist dotgit) $ do
|
||||
linktarget <- relPathDirToFile w d
|
||||
let dotgit' = fromOsPath dotgit
|
||||
removeWhenExistsWith R.removeLink dotgit'
|
||||
R.createSymbolicLink (fromOsPath linktarget) dotgit'
|
||||
removeWhenExistsWith removeFile dotgit
|
||||
R.createSymbolicLink (fromOsPath linktarget) (fromOsPath dotgit)
|
||||
|
||||
-- Unsetting a config fails if it's not set, so ignore failure.
|
||||
unsetcoreworktree = void $ Git.Config.unset "core.worktree" r
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue