Skip to content

Commit f3761ed

Browse files
author
Andras Fekete
committed
Since no one uses this, we should remove commit hooks
1 parent d5d476a commit f3761ed

3 files changed

Lines changed: 0 additions & 92 deletions

File tree

autogen.sh

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,6 @@ if [ -n "$WSL_DISTRO_NAME" ]; then
1616
fi
1717
fi
1818

19-
# Git hooks should come before autoreconf.
20-
if [ -d .git ]; then
21-
if [ ! -d .git/hooks ]; then
22-
mkdir .git/hooks || exit $?
23-
fi
24-
25-
if [ -n "$no_links" ]; then
26-
echo "Linux ln does not work on shared Windows file system in WSL."
27-
if [ ! -e .git/hooks/pre-commit ]; then
28-
echo "The pre-commit.sh file will not be copied to .git/hooks/pre-commit"
29-
# shell scripts do not work on Windows; TODO create equivalent batch file
30-
# cp ./pre-commit.sh .git/hooks/pre-commit || exit $?
31-
fi
32-
if [ ! -e .git/hooks/pre-push ]; then
33-
echo "The pre-push.sh file will not be copied to .git/hooks/pre-commit"
34-
# shell scripts do not work on Windows; TODO create equivalent batch file
35-
# cp ./pre-push.sh .git/hooks/pre-push || exit $?
36-
fi
37-
else
38-
if [ ! -e .git/hooks/pre-commit ]; then
39-
ln -s ../../pre-commit.sh .git/hooks/pre-commit || exit $?
40-
fi
41-
if [ ! -e .git/hooks/pre-push ]; then
42-
ln -s ../../pre-push.sh .git/hooks/pre-push || exit $?
43-
fi
44-
fi
45-
fi
46-
4719
# if and as needed, create empty dummy versions of various files, mostly
4820
# associated with fips/self-test and asynccrypt:
4921

pre-commit.sh

Lines changed: 0 additions & 45 deletions
This file was deleted.

pre-push.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)