mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Add a shared git hooks directory
This PR adds a place to share git hooks.
This commit is contained in:
@@ -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
12
dev/hooks/pre-push
Executable 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
|
||||
Reference in New Issue
Block a user