diff --git a/Command/Info.hs b/Command/Info.hs index e489db0eaa..db59530504 100644 --- a/Command/Info.hs +++ b/Command/Info.hs @@ -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 diff --git a/debian/changelog b/debian/changelog index cd12c7e791..9ef48e01f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Mon, 06 Apr 2015 20:14:20 -0400