alirezanet / Husky.Net

Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
https://alirezanet.github.io/Husky.Net/
MIT License
684 stars 31 forks source link

feat(install): git submodule handling #81

Closed Tychus closed 1 year ago

Tychus commented 1 year ago

Description

Husky so far is unable to handle install on submodules. This PR attempts to solve that by adding:

  1. IgnoreSubmodule option to both attach and install which will either prevent the whole target from being executed (same as Husku = 1) or in the case of install make it break the installation process if it detects it's a submodule.
  2. When IgnoreSubdmoule is not specified the install command will then attach the husky hooks to the correct .git directory which is not .git in the case of submodules.

See more details here #69

Fixes issue (#69)

Type of change

Checklist

alirezanet commented 1 year ago

Hi @Tychus, I merged the PR since this is not a blocker to this feature ... but if you have time please add corresponding information to the documentations also, would make it easier for others to use your feature. and thank you for your contribution.