Add a shared git hooks directory

This PR adds a place to share git hooks.
This commit is contained in:
Alex Dadgar 2017-08-17 10:55:53 -07:00
parent ec10e07f61
commit 38f986ca7e
2 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,8 @@ Nomad itself.
See the individual packages for more detail on how to use the configuration
files. At a high-level the use case for each package is as follows:
* `hooks`: This package provides helpful git hooks for developing Nomad.
* `docker-clients`: This package provides a Nomad job file that can be used to
spin up Nomad clients in Docker containers. This provides a simple mechanism
to create a Nomad cluster locally.

12
dev/hooks/pre-push Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
if [ "$remote" == "enterprise" ]; then
exit 0
fi
if [ -f version/version_ent.go ]; then
echo "Found enterprise version file while pushing to oss remote"
exit 1
fi
exit 0