File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
2- # Creates symlinks of hooks in .githooks directory in .git/hooks
3- # If user already has hooks in .git/hooks then hooks from .githooks
4- # will be added as separate files with different names and a command
5- # to run these hooks will be added to the respective existing hooks
6- # on the last line of the file.
2+ # Creates hooks in .git/hooks directory based on the hooks available in .githooks.
3+ # If user already has hooks in .git/hooks then hooks from .githooks will be added
4+ # as separate files with different names and a command to run these hooks will be
5+ # added to the respective existing hooks on the last line of the file.
76
87current_dir=${PWD##*/ }
98
4241 else
4342 echo " ${hook} is already linked."
4443 fi
45- done
44+ done
You can’t perform that action at this time.
0 commit comments