Replies: 1 comment 3 replies
-
Yes, that's a good catch. I'll fix this. On a separate note, do you think it makes sense to throw a warning on symlinked hooks? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have hook files in
~/.git_template/hooks
and I am seeing unexpected behaviour.The first thing is that those files get soft linked from
<project_root>/.git/hooks
when you clone a repo. Hence, when you callvectorcode init --hooks
, this introduces the vectorcode bits "globally".Cloning a repo is a special case where the old SHA has a special value which does not work with
git diff
:Hence, I saw this error on every new clone once I had introduced the hooks.
The second thing is that I did not want the vectorcode bits on every repo.
Long story short:
I changed the fragment to:
Not quite sure, but those may be slightly better defaults?
Beta Was this translation helpful? Give feedback.
All reactions