chore: Add pre-push hook

This commit is contained in:
Timothy Messier committed 2021-10-15 14:03:26 -04:00
1 parent 5d527c5e99
commit b9a393d10b
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
remote="$1"
remote_url=$(git remote get-url $remote)
if [[ $remote_url == *"boundary-enterprise"* ]]; then
exit 0
fi
if [ -f cmd/boundary/package_registration_ent.go ]; then
echo "Found enterprise file while pushing to oss remote"
exit 1
fi
exit 0