This commit is contained in:
Joey Hess 2022-11-28 14:07:35 -04:00
parent 85ea582e2b
commit 022c14ec02
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,17 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2022-11-28T17:57:19Z"
content="""
You can edit the hooks that git-annex installs however you need to. It will
not overwrite modified hook files. If you edit this hook to have unix line
endings, does the hook still work when using this repository on windows?
Actually, I'm having difficulty seeing how the CR could have gotten into
that hook. `mkHookScript` uses `unlines` which behaves the same on Windows
as on Linux, so in either case lines should be separated only by `\n`.
This makes me wonder if something else modified the hook after git-annex
wrote it. If so, `git-annex init` should complain that the hook is
modified.
"""]]