add a missing import
This commit is contained in:
parent
6cba1950f2
commit
9d53e1cddf
2 changed files with 3 additions and 2 deletions
|
@ -11,6 +11,7 @@ import Git.Types
|
|||
import Git.Config
|
||||
import Types.GitConfig
|
||||
import Config.Files
|
||||
import qualified Git
|
||||
import qualified Git.BuildVersion
|
||||
import Utility.Path
|
||||
import Utility.SafeCommand
|
||||
|
@ -141,7 +142,7 @@ fixupUnusualRepos r@(Repo { location = l@(Local { worktree = Just w, gitdir = d
|
|||
| coreSymlinks c = r { location = l { gitdir = dotgit } }
|
||||
| otherwise = r
|
||||
|
||||
notnoannex = isNothing <$> noAnnexFileContent (repoWorkTree r)
|
||||
notnoannex = isNothing <$> noAnnexFileContent (Git.repoWorkTree r)
|
||||
fixupUnusualRepos r _ = return r
|
||||
|
||||
needsSubmoduleFixup :: Repo -> Bool
|
||||
|
|
|
@ -53,7 +53,7 @@ import qualified Utility.LockFile.Posix as Posix
|
|||
#endif
|
||||
|
||||
checkCanInitialize :: Annex a -> Annex a
|
||||
checkCanInitialize a = inRepo (noAnnexFileContent . repoWorkTree) >>= \case
|
||||
checkCanInitialize a = inRepo (noAnnexFileContent . Git.repoWorkTree) >>= \case
|
||||
Nothing -> a
|
||||
Just noannexmsg -> do
|
||||
warning "Initialization prevented by .noannex file (remove the file to override)"
|
||||
|
|
Loading…
Reference in a new issue