don't probe support for git-annex smudge --update

Any git-annex not supporting that doesn't support v7 repositories,
so will refuse to work in a repository that has this hook installed.
This commit is contained in:
Joey Hess 2018-10-26 14:37:43 -04:00
parent 12c88ee571
commit 497846d740
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -38,10 +38,10 @@ postCheckoutHook = Git.Hook "post-checkout" smudgeHook []
postMergeHook :: Git.Hook
postMergeHook = Git.Hook "post-merge" smudgeHook []
-- Only run git-annex smudge --update when git-annex supports it.
-- Older versions of git-annex didn't need this hook.
-- Older versions of git-annex didn't support this command, but neither did
-- they support v7 repositories.
smudgeHook :: String
smudgeHook = mkHookScript "if git annex smudge --update >/dev/null 2>&1; then git-annex smudge --update; fi"
smudgeHook = mkHookScript "git annex smudge --update"
preCommitAnnexHook :: Git.Hook
preCommitAnnexHook = Git.Hook "pre-commit-annex" "" []