summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-09-16 12:24:34 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-09-16 12:25:43 -0400
commita910c70d23faef8f7794e31d45940a1471fbd714 (patch)
treeb86e2788e9273d70d794a081481882e819769f74
parent7f225ddb9af6d87cfaf69e395192d08c32c41d7f (diff)
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.
-rw-r--r--Command/Info.hs2
-rw-r--r--debian/changelog7
2 files changed, 8 insertions, 1 deletions
diff --git a/Command/Info.hs b/Command/Info.hs
index 9bf2101a0..25a537e8d 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 78cd50376..0ded62f12 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 <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.