Skip to content

Commit d2a96f1

Browse files
authored
Skip Git hook repository check to enable build without .git (#301)
The build process would fail if the `.git/` directory is missing, e. g. when downloading the repository contents from GitHub in a ZIP archive: ```text [ERROR] Failed to execute goal io.github.phillipuniverse:githook-maven-plugin:1.0.5:install (default) on project openapi-diff-parent: Not a git repository, could not find a .git/hooks directory anywhere in the hierarchy of /path/to/openapi-diff/target. Turn off this behavior with skipRepositoryCheck=false -> [Help 1] ``` After the change, a missing `.git/` directory doesn't lead to a build failure: ```text [INFO] --- githook-maven-plugin:1.0.5:install (default) @ openapi-diff-parent --- [INFO] No .git directory found, skipping plugin execution ``` Refs #299
1 parent 7614541 commit d2a96f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@
362362
<goal>install</goal>
363363
</goals>
364364
<configuration>
365+
<skipRepositoryCheck>true</skipRepositoryCheck>
365366
<hooks>
366367
<pre-commit>
367368
mvn com.coveo:fmt-maven-plugin:format

0 commit comments

Comments
 (0)