Commit 0efdba14 authored by Suzanne Selhorn's avatar Suzanne Selhorn

Docs: Changed variable name

Related to: https://gitlab.com/gitlab-org/gitlab/-/issues/219978
parent 3ca6eda9
...@@ -406,13 +406,13 @@ proxy_push() ...@@ -406,13 +406,13 @@ proxy_push()
REFNAME="$3" REFNAME="$3"
# --- Pattern of branches to proxy pushes # --- Pattern of branches to proxy pushes
whitelisted=$(expr "$branch" : "\(master\)") allowlist=$(expr "$branch" : "\(master\)")
case "$refname" in case "$refname" in
refs/heads/*) refs/heads/*)
branch=$(expr "$refname" : "refs/heads/\(.*\)") branch=$(expr "$refname" : "refs/heads/\(.*\)")
if [ "$whitelisted" = "$branch" ]; then if [ "$allowlist" = "$branch" ]; then
unset GIT_QUARANTINE_PATH # handle https://git-scm.com/docs/git-receive-pack#_quarantine_environment unset GIT_QUARANTINE_PATH # handle https://git-scm.com/docs/git-receive-pack#_quarantine_environment
error="$(git push --quiet $TARGET_REPO $NEWREV:$REFNAME 2>&1)" error="$(git push --quiet $TARGET_REPO $NEWREV:$REFNAME 2>&1)"
fail=$? fail=$?
...@@ -453,7 +453,7 @@ Note that this sample has a few limitations: ...@@ -453,7 +453,7 @@ Note that this sample has a few limitations:
- This example may not work verbatim for your use case and might need modification. - This example may not work verbatim for your use case and might need modification.
- It does not regard different types of authentication mechanisms for the mirror. - It does not regard different types of authentication mechanisms for the mirror.
- It does not work with forced updates (rewriting history). - It does not work with forced updates (rewriting history).
- Only branches that match the `whitelisted` patterns will be proxy pushed. - Only branches that match the `allowlist` patterns will be proxy pushed.
- The script circumvents the Git hook quarantine environment because the update of `$TARGET_REPO` - The script circumvents the Git hook quarantine environment because the update of `$TARGET_REPO`
is seen as a ref update and Git will complain about it. is seen as a ref update and Git will complain about it.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment