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

Add the possibility to install git hooks on git submodules #353

Open
eburghar opened this issue Dec 20, 2023 · 0 comments
Open

Add the possibility to install git hooks on git submodules #353

eburghar opened this issue Dec 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@eburghar
Copy link

Is your feature request related to a problem? Please describe.
Generally .git on a submodule is not a directory (although it can be) but a file containing the path of the directory (inside .git/modules). Launching cog install-hook -a in that case returns an error (Error: Not a directory (os error 20)).

Describe the solution you'd like
Handle the hook installations when .git is a file, and also add a --recurse switch to install-hook command for installing all submodules hooks that have a cog.toml file.

Describe alternatives you've considered
move the directory from .git/submodules/xxx to xxx/.git or make a symlink.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants