docs: swap master for main in Nomad repo

This commit is contained in:
Tim Gross
2021-03-08 08:50:13 -05:00
parent a82697a2f0
commit 03a1192c12
8 changed files with 24 additions and 25 deletions

View File

@@ -13,12 +13,12 @@ if [ "$2" != "$ent" -a -f version/version_ent.go ]; then
fail "found enterprise version file version/version_ent.go while pushing to oss remote"
fi
# don't push to master, stable-*
# don't push to main, stable-*
# ====================
while read local_ref local_sha remote_ref remote_sha
do
if [ "$remote_ref" = "refs/heads/master" ]; then
fail "refusing to push directly to master"
if [ "$remote_ref" = "refs/heads/main" ]; then
fail "refusing to push directly to main"
fi
if echo "$remote_ref"|grep -q 'refs/heads/stable-.*'; then