info: Display repository mode: bare when in a bare (non-direct mode) repo.

This commit is contained in:
Joey Hess 2015-04-09 12:28:26 -04:00
parent 0868472abb
commit 84dc5629c6
2 changed files with 8 additions and 1 deletions

View file

@ -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

2
debian/changelog vendored
View file

@ -10,6 +10,8 @@ git-annex (5.20150406.2) UNRELEASED; urgency=medium
behavior is more useful in direct mode.
* proxy: Made it work when run in a new repository before initial
commit.
* info: Display repository mode: bare when in a bare (non-direct mode)
repo.
-- Joey Hess <id@joeyh.name> Mon, 06 Apr 2015 20:14:20 -0400