diff options
Diffstat (limited to '')
-rw-r--r-- | scripts/.gitattributes | 1 | ||||
-rwxr-xr-x | scripts/pre-commit.sh (renamed from scripts/pre-commit) | 0 | ||||
-rwxr-xr-x | scripts/setup-hooks.sh (renamed from scripts/setup-hooks) | 4 |
3 files changed, 2 insertions, 3 deletions
diff --git a/scripts/.gitattributes b/scripts/.gitattributes deleted file mode 100644 index fcadb2c..0000000 --- a/scripts/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text eol=lf diff --git a/scripts/pre-commit b/scripts/pre-commit.sh index 8a98a0e..8a98a0e 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit.sh diff --git a/scripts/setup-hooks b/scripts/setup-hooks.sh index f4d1b1f..6913245 100755 --- a/scripts/setup-hooks +++ b/scripts/setup-hooks.sh @@ -11,6 +11,6 @@ cd -- "$script_dir" gitdir="$( git rev-parse --git-dir )" hooks_dir="$gitdir/hooks" -symlink_dest="$( realpath "--relative-to=$hooks_dir" -- "$script_dir/pre-commit" )" +symlink_dest="$( realpath "--relative-to=$hooks_dir" -- "$script_dir/pre-commit.sh" )" -ln -fs -- "$symlink_dest" "$hooks_dir/" +ln -fs -- "$symlink_dest" "$hooks_dir/pre-commit" |