info: Display repository mode: bare when in a bare (non-direct mode) repo.
This commit is contained in:
parent
0868472abb
commit
84dc5629c6
2 changed files with 8 additions and 1 deletions
|
@ -238,7 +238,12 @@ showStat s = maybe noop calc =<< s
|
|||
repository_mode :: Stat
|
||||
repository_mode = simpleStat "repository mode" $ lift $
|
||||
ifM isDirect
|
||||
( return "direct", return "indirect" )
|
||||
( return "direct"
|
||||
, ifM (fromRepo Git.repoIsLocalBare)
|
||||
( return "bare"
|
||||
, return "indirect"
|
||||
)
|
||||
)
|
||||
|
||||
remote_list :: TrustLevel -> Stat
|
||||
remote_list level = stat n $ nojson $ lift $ do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue