diff --git a/dev/README.md b/dev/README.md index 473db1a53..9bb582119 100644 --- a/dev/README.md +++ b/dev/README.md @@ -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. diff --git a/dev/hooks/pre-push b/dev/hooks/pre-push new file mode 100755 index 000000000..3508ad111 --- /dev/null +++ b/dev/hooks/pre-push @@ -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