diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-30 16:12:20 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-30 16:12:20 -0400 |
commit | 2125458db2ae85357eb7bf0439c549b30ce5ef9c (patch) | |
tree | a18d8719701e8b1b98eafd464e3f0cfbc93860e3 /Init.hs | |
parent | d9d07ca0efce0ebf619821f58cdc7572b87b21cd (diff) |
init: Fix a bug that caused git annex init, when run in a bare repository, to set core.bare=false.
Diffstat (limited to 'Init.hs')
-rw-r--r-- | Init.hs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |