automatically set and unset core.bare when switching to/from direct mode
This commit is contained in:
parent
0edd9ec03a
commit
04768e44b2
4 changed files with 18 additions and 7 deletions
|
@ -153,7 +153,10 @@ boolConfig True = "true"
|
|||
boolConfig False = "false"
|
||||
|
||||
isBare :: Repo -> Bool
|
||||
isBare r = fromMaybe False $ isTrue =<< getMaybe "core.bare" r
|
||||
isBare r = fromMaybe False $ isTrue =<< getMaybe coreBare r
|
||||
|
||||
coreBare :: String
|
||||
coreBare = "core.bare"
|
||||
|
||||
{- Runs a command to get the configuration of a repo,
|
||||
- and returns a repo populated with the configuration, as well as the raw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue