From 9e48c04d15bab29dcf1d487fd7298cbfcc153d84 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 16 Sep 2015 12:24:34 -0400 Subject: [PATCH] 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. --- Command/Info.hs | 2 +- debian/changelog | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Command/Info.hs b/Command/Info.hs index 9bf2101a02..25a537e8d8 100644 --- a/Command/Info.hs +++ b/Command/Info.hs @@ -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) diff --git a/debian/changelog b/debian/changelog index 78cd503767..0ded62f123 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 16 Sep 2015 12:23:33 -0400 + git-annex (5.20150916) unstable; urgency=medium * Fix Windows build to work with ghc 7.10.