revert recent bug fix temporarily for release

Decided this bug is not severe enough to delay the release until
tomorrow, so this will be re-applied after the release.
This commit is contained in:
Joey Hess 2023-02-14 14:06:29 -04:00
parent c1ef4a7481
commit 16f1e24665
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
8 changed files with 33 additions and 42 deletions

View file

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