unannex: Refuse to unannex when repo is too new to have a HEAD

In this case there must be staged changes in the index (if there is
anything to unannex), and the unannex code path needs to run with a clean
index.
This commit is contained in:
Joey Hess 2015-02-25 13:59:23 -04:00
parent 80aa7e3571
commit 8a3e2b302a
4 changed files with 45 additions and 5 deletions

4
debian/changelog vendored
View file

@ -7,6 +7,10 @@ git-annex (5.2015022) UNRELEASED; urgency=medium
* fsck: Multiple incremental fscks of different repos (including remotes)
can now be running at the same time in the same repo without it
getting confused about which files have been checked for which remotes.
* unannex: Refuse to unannex when repo is too new to have a HEAD,
since in this case there must be staged changes in the index
(if there is anything to unannex), and the unannex code path
needs to run with a clean index.
-- Joey Hess <id@joeyh.name> Thu, 19 Feb 2015 14:16:03 -0400