don't let git-annex direct be run in a v6 repo
This commit is contained in:
parent
ccc49861ca
commit
e7f75b079d
6 changed files with 26 additions and 6 deletions
|
@ -37,6 +37,12 @@ versionField = annexConfig "version"
|
|||
getVersion :: Annex (Maybe Version)
|
||||
getVersion = annexVersion <$> Annex.getGitConfig
|
||||
|
||||
versionSupportsDirectMode :: Annex Bool
|
||||
versionSupportsDirectMode = go <$> getVersion
|
||||
where
|
||||
go (Just "6") = False
|
||||
go _ = True
|
||||
|
||||
setVersion :: Version -> Annex ()
|
||||
setVersion = setConfig versionField
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue