Skip to content

Commit

Permalink
Since no one uses this, we should remove commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Fekete committed Jan 10, 2024
1 parent d5d476a commit f3761ed
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 92 deletions.
28 changes: 0 additions & 28 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,6 @@ if [ -n "$WSL_DISTRO_NAME" ]; then
fi
fi

# Git hooks should come before autoreconf.
if [ -d .git ]; then
if [ ! -d .git/hooks ]; then
mkdir .git/hooks || exit $?
fi

if [ -n "$no_links" ]; then
echo "Linux ln does not work on shared Windows file system in WSL."
if [ ! -e .git/hooks/pre-commit ]; then
echo "The pre-commit.sh file will not be copied to .git/hooks/pre-commit"
# shell scripts do not work on Windows; TODO create equivalent batch file
# cp ./pre-commit.sh .git/hooks/pre-commit || exit $?
fi
if [ ! -e .git/hooks/pre-push ]; then
echo "The pre-push.sh file will not be copied to .git/hooks/pre-commit"
# shell scripts do not work on Windows; TODO create equivalent batch file
# cp ./pre-push.sh .git/hooks/pre-push || exit $?
fi
else
if [ ! -e .git/hooks/pre-commit ]; then
ln -s ../../pre-commit.sh .git/hooks/pre-commit || exit $?
fi
if [ ! -e .git/hooks/pre-push ]; then
ln -s ../../pre-push.sh .git/hooks/pre-push || exit $?
fi
fi
fi

# if and as needed, create empty dummy versions of various files, mostly
# associated with fips/self-test and asynccrypt:

Expand Down
45 changes: 0 additions & 45 deletions pre-commit.sh

This file was deleted.

19 changes: 0 additions & 19 deletions pre-push.sh

This file was deleted.

0 comments on commit f3761ed

Please sign in to comment.