Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git attempts to copy templates every time a repo is cloned. #9

Open
daephx opened this issue Apr 3, 2024 · 0 comments
Open

Git attempts to copy templates every time a repo is cloned. #9

daephx opened this issue Apr 3, 2024 · 0 comments

Comments

@daephx
Copy link
Owner

daephx commented Apr 3, 2024

I figured setting some basic hooks for new repositories would be nice to prevent bad habits specific to my workflow while letting CI cover the more project specific conditions, but perhaps my current setup for hooks is not ideal...

Templates are copied during manual clones and apparently every time neovim and lazy clone a plugin.
It's best we only set these hooks for personal repositories if at all.
In addition to the primary issue, hooks are not very cross-platform unless you ensure something like python is installed on all the necessary systems, since writing them in Bash or PowerShell make them more platform specific.

  • Remove the templates field and forgo using default hooks.
  • Set templates conditionally as some pattern referencing the ~/Projects directory.
  • If kept? Ensure all hooks are converted to a cross-platform language
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant