summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-26 21:01:19 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-26 22:43:48 -0400
commitc90652f015b370e270da8174b4ac61e454e06ffd (patch)
tree23c81ac7f4299ec7b3e5adb61fc3dc5da8890de2
parent45bce3a3a8706c12b8e1eb98a6fe0d62e378d10b (diff)
Always ensure git-annex branch exists.
-rw-r--r--Branch.hs7
-rw-r--r--debian/changelog6
2 files changed, 10 insertions, 3 deletions
diff --git a/Branch.hs b/Branch.hs
index 3f5e0ee1e..916261a9c 100644
--- a/Branch.hs
+++ b/Branch.hs
@@ -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
diff --git a/debian/changelog b/debian/changelog
index 47652241a..854314856 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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.