File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,34 +16,6 @@ if [ -n "$WSL_DISTRO_NAME" ]; then
1616 fi
1717fi
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
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments