Skip to content

Commit

Permalink
Merge pull request #3048 from hashicorp/f-pre-push
Browse files Browse the repository at this point in the history
Add a shared git hooks directory
  • Loading branch information
dadgar committed Aug 17, 2017
2 parents 48c4a03 + 25d1d2e commit 15e25f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 12 additions & 0 deletions dev/hooks/pre-push
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 15e25f1

Please sign in to comment.