restart on upgrade now fully working

This commit is contained in:
Joey Hess 2013-11-22 23:42:16 -04:00
parent 0980f3dae6
commit 7cd9f909e4
2 changed files with 14 additions and 8 deletions

View file

@ -255,9 +255,9 @@ withCurrentState a = do
- Fix up the Repo to be a non-bare repo, and arrange for git commands
- run by git-annex to be passed parameters that override this setting. -}
fixupDirect :: Git.Repo -> Git.Repo
fixupDirect r@(Repo { location = Local { gitdir = d, worktree = Nothing } }) =
fixupDirect r@(Repo { location = l@(Local { gitdir = d, worktree = Nothing }) }) =
r
{ location = Local { gitdir = d </> ".git", worktree = Just d }
{ location = l { worktree = Just (parentDir d) }
, gitGlobalOpts = gitGlobalOpts r ++
[ Param "-c"
, Param $ coreBare ++ "=" ++ boolConfig False