info: Don't allow use in a non-git-annex repository, since it uses the git-annex branch and would create it if it were missing.

I made the change to allow in 2014 without any rationalle or associated
request that I can find.
This commit is contained in:
Joey Hess 2015-09-16 12:24:34 -04:00
parent f8ff39ccf5
commit 9e48c04d15
2 changed files with 8 additions and 1 deletions

View file

@ -79,7 +79,7 @@ emptyStatInfo = StatInfo Nothing Nothing M.empty Nothing
type StatState = StateT StatInfo Annex
cmd :: Command
cmd = noCommit $ dontCheck repoExists $ withGlobalOptions (jsonOption : annexedMatchingOptions) $
cmd = noCommit $ withGlobalOptions (jsonOption : annexedMatchingOptions) $
command "info" SectionQuery
"shows information about the specified item or the repository as a whole"
(paramRepeating paramItem) (seek <$$> optParser)

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
git-annex (5.20150917) UNRELEASED; urgency=medium
* info: Don't allow use in a non-git-annex repository, since it
uses the git-annex branch and would create it if it were missing.
-- Joey Hess <id@joeyh.name> Wed, 16 Sep 2015 12:23:33 -0400
git-annex (5.20150916) unstable; urgency=medium
* Fix Windows build to work with ghc 7.10.