Always ensure git-annex branch exists.

This commit is contained in:
Joey Hess 2011-06-26 21:01:19 -04:00
parent 45bce3a3a8
commit c90652f015
2 changed files with 10 additions and 3 deletions

View file

@ -83,9 +83,10 @@ withIndex' bootstrapping a = do
reset <- liftIO $ Git.useIndex f
e <- liftIO $ doesFileExist f
unless e $ liftIO $ do
createDirectoryIfMissing True $ takeDirectory f
unless bootstrapping $ genIndex g
unless e $ do
unless bootstrapping $ create
liftIO $ createDirectoryIfMissing True $ takeDirectory f
liftIO $ unless bootstrapping $ genIndex g
r <- a
liftIO reset

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
git-annex (3.20110625) UNRELEASED; urgency=low
* Always ensure git-annex branch exists.
-- Joey Hess <joeyh@debian.org> Sun, 26 Jun 2011 21:01:06 -0400
git-annex (3.20110624) experimental; urgency=low
* New repository format, annex.version=3. Use `git annex upgrade` to migrate.