Skip to content

Commit b9a393d

Browse files
committed
chore: Add pre-push hook
1 parent 5d527c5 commit b9a393d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.hooks/pre-push

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
remote="$1"
4+
remote_url=$(git remote get-url $remote)
5+
6+
if [[ $remote_url == *"boundary-enterprise"* ]]; then
7+
exit 0
8+
fi
9+
10+
if [ -f cmd/boundary/package_registration_ent.go ]; then
11+
echo "Found enterprise file while pushing to oss remote"
12+
exit 1
13+
fi
14+
15+
exit 0

0 commit comments

Comments
 (0)