init: Fix a bug that caused git annex init, when run in a bare repository, to set core.bare=false.

This commit is contained in:
Joey Hess 2013-11-30 16:12:20 -04:00
parent 0d4b6a1d66
commit b1f678b8e5
2 changed files with 11 additions and 1 deletions

View file

@ -65,7 +65,10 @@ initialize mdescription = do
setVersion directModeVersion
, do
setVersion defaultVersion
setDirect False
-- Handle case where this repo was cloned from a
-- direct mode repo.
unlessM isBare
switchHEADBack
)
createInodeSentinalFile
u <- getUUID

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
git-annex (5.20131127.2) UNRELEASED; urgency=low
* init: Fix a bug that caused git annex init, when run in a bare
repository, to set core.bare=false.
-- Joey Hess <joeyh@debian.org> Sat, 30 Nov 2013 16:10:48 -0400
git-annex (5.20131127.1) unstable; urgency=low
* Rebuild that does not try to use quvi 0.9 from experimental.