summaryrefslogtreecommitdiff
path: root/Init.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Init.hs')
-rw-r--r--Init.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Init.hs b/Init.hs
index ad1803995..76f8d236e 100644
--- a/Init.hs
+++ b/Init.hs
@@ -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