Download the zip package of the latest Toradocu version from here.
Build Toradocu: ./gradlew build.
Expected result:
Build completes correctly.
Actual result:
Build fails with the error ln: .git/hooks/pre-commit: No such file or directory.
Additional information:
The downloaded zip doesn't contain any .git folder. In the build file we try anyway to install the pre-commit hook. We should not try to install the pre-commit hook if there is no .git directory (i.e., the current directory is not a git project).
Steps to reproduce:
./gradlew build
.Expected result: Build completes correctly.
Actual result: Build fails with the error
ln: .git/hooks/pre-commit: No such file or directory
.Additional information: The downloaded zip doesn't contain any
.git
folder. In the build file we try anyway to install the pre-commit hook. We should not try to install the pre-commit hook if there is no.git
directory (i.e., the current directory is not a git project).