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:
parent
12c88ee571
commit
497846d740
1 changed files with 3 additions and 3 deletions
|
@ -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" "" []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue