adjusted branches need git 2.2.0 or newer

When git-annex is used with a git version older than 2.2.0, disable support for
adjusted branches, since GIT_COMMON_DIR is needed to update them and was first
added in that version of git.
This commit is contained in:
Joey Hess 2016-04-22 12:29:32 -04:00
parent a3465c6327
commit 0273cd5005
Failed to extract signature
5 changed files with 28 additions and 5 deletions

View file

@ -40,7 +40,10 @@ withWorkTree d = withAltRepo
- files that are related to the work tree coming from an overlay
- directory other than the usual. This is done by pointing
- GIT_COMMON_DIR at the regular git directory, and GIT_DIR at the
- overlay directory. -}
- overlay directory.
-
- Needs git 2.2.0 or newer.
-}
withWorkTreeRelated :: FilePath -> Annex a -> Annex a
withWorkTreeRelated d = withAltRepo modrepo unmodrepo
where