change user-visible error to giveup

This commit is contained in:
Joey Hess 2021-01-21 14:13:14 -04:00
parent 954816f1eb
commit 3847aa3c9c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -116,7 +116,7 @@ fixupUnusualRepos r@(Repo { location = l@(Local { worktree = Just w, gitdir = d
R.createSymbolicLink linktarget dotgit
unsetcoreworktree =
maybe (error "unset core.worktree failed") (\_ -> return ())
maybe (giveup "unset core.worktree failed") (\_ -> return ())
=<< Git.Config.unset "core.worktree" r
worktreefixup =