summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Git/Config.hs9
-rw-r--r--debian/changelog2
2 files changed, 9 insertions, 2 deletions
diff --git a/Git/Config.hs b/Git/Config.hs
index 1919ecedf..b5c1be04a 100644
--- a/Git/Config.hs
+++ b/Git/Config.hs
@@ -110,8 +110,13 @@ store s repo = do
-}
updateLocation :: Repo -> IO Repo
updateLocation r@(Repo { location = LocalUnknown d })
- | isBare r = updateLocation' r $ Local d Nothing
- | otherwise = updateLocation' r $ Local (d </> ".git") (Just d)
+ | isBare r = ifM (doesDirectoryExist dotgit)
+ ( updateLocation' r $ Local dotgit Nothing
+ , updateLocation' r $ Local d Nothing
+ )
+ | otherwise = updateLocation' r $ Local dotgit (Just d)
+ where
+ dotgit = (d </> ".git")
updateLocation r@(Repo { location = l@(Local {}) }) = updateLocation' r l
updateLocation r = return r
diff --git a/debian/changelog b/debian/changelog
index f1850b6f0..9f6f6992c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ git-annex (5.20131121) UNRELEASED; urgency=low
and either prompt the user to restart the program, or automatically
restart it.
* annex.autoupgrade configures both the above upgrade behaviors.
+ * Fix bug that broke switching between local repositories
+ in the webapp when they use the new guarded direct mode.
-- Joey Hess <joeyh@debian.org> Wed, 20 Nov 2013 18:30:47 -0400