change user-visible error to giveup
authorJoey Hess <joeyh@joeyh.name>
Thu, 21 Jan 2021 18:13:14 +0000 (14:13 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 21 Jan 2021 18:13:14 +0000 (14:13 -0400)
Annex/Fixup.hs

index 38cb676a1c643b81a0590ea88944a35e35214952..8730b83230930f67d6dda7283bda157dd695c37d 100644 (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 =