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-lfs support for hooks? #16

Open
klundberg opened this issue Apr 8, 2019 · 1 comment
Open

git-lfs support for hooks? #16

klundberg opened this issue Apr 8, 2019 · 1 comment

Comments

@klundberg
Copy link

I'm doing a little bit of investigation into git-lfs, and it appears that it also manages its installation by setting up some hooks (specifically pre-push, post-checkout, post-commit, and post-merge). It stops if komondor already installed hooks into the repo, and recommends either manually editing the hooks scripts, or doing a force overwrite.

In the interest of not having to copy-paste lines into those hook scripts, would komondor be able to detect if git-lfs hooks were already installed, and append komondor's part to the end? Or perhaps komondor could detect if git-lfs is enabled for a repo somehow, and call git-lfs automatically so that developers don't need to manually edit the hooks after installing komondor?

@orta
Copy link
Member

orta commented Apr 8, 2019

Sure, appending seems reasonable to me. I've never used git-lfs, so you're on your own there I'm afraid - but seems reasonable if you can get a simple heuristic that it's that sort of setup.

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

2 participants