You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check for .git directory before attempting copy #10
At the mo when our module is loaded it copies priv/pre-commit to the parent module's .git/hooks directory. Sometimes the parent module might not be an initialised .git repo, or it could be a subfolder of an initialised repo. Two solutions to this:
Run a check to see if the .git folder exists before copying - if it doesn't IO.puts an error message.
Add the above, but also add an optional second config variable that points to the absolute path of the correct .git/hooks.
Activity
finnhodgkin commentedon Jun 7, 2018
Closed by #28