Revert "revert recent bug fix temporarily for release"

This reverts commit 16f1e24665.
This commit is contained in:
Joey Hess 2023-02-14 14:11:23 -04:00
parent dd1a5f4961
commit 672258c8f4
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
8 changed files with 47 additions and 33 deletions

View file

@ -81,7 +81,7 @@ get = do
}
r <- Git.Config.read $ (newFrom loc)
{ gitDirSpecifiedExplicitly = True }
return $ if Git.Config.isBare r
return $ if fromMaybe False (Git.Config.isBare r)
then r { location = (location r) { worktree = Nothing } }
else r
configure Nothing Nothing = giveup "Not in a git repository."