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
|
||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue