albertogoffi / toradocu

Toradocu - automated generation of test oracles from Javadoc documentation
Other
42 stars 21 forks source link

Build fails with downloaded zip package #72

Closed albertogoffi closed 7 years ago

albertogoffi commented 7 years ago

Steps to reproduce:

  1. Download the zip package of the latest Toradocu version from here.
  2. 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).