summaryrefslogtreecommitdiff
path: root/Annex/AdjustedBranch.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/AdjustedBranch.hs')
-rw-r--r--Annex/AdjustedBranch.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Annex/AdjustedBranch.hs b/Annex/AdjustedBranch.hs
index 67c36f399..30cefdec0 100644
--- a/Annex/AdjustedBranch.hs
+++ b/Annex/AdjustedBranch.hs
@@ -52,6 +52,7 @@ import Annex.Perms
import Annex.GitOverlay
import Utility.Tmp
import qualified Database.Keys
+import Config
import qualified Data.Map as M
@@ -551,7 +552,10 @@ data AdjustedClone = InAdjustedClone | NotInAdjustedClone | NeedUpgradeForAdjust
- current version is too old to support adjusted branches. Returns True
- when this is the case. -}
checkAdjustedClone :: Annex AdjustedClone
-checkAdjustedClone = go =<< inRepo Git.Branch.current
+checkAdjustedClone = ifM isBareRepo
+ ( return NotInAdjustedClone
+ , go =<< inRepo Git.Branch.current
+ )
where
go Nothing = return NotInAdjustedClone
go (Just currbranch) = case adjustedToOriginal currbranch of