Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0efdba14
Commit
0efdba14
authored
Jun 11, 2020
by
Suzanne Selhorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Changed variable name
Related to:
https://gitlab.com/gitlab-org/gitlab/-/issues/219978
parent
3ca6eda9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
doc/user/project/repository/repository_mirroring.md
doc/user/project/repository/repository_mirroring.md
+3
-3
No files found.
doc/user/project/repository/repository_mirroring.md
View file @
0efdba14
...
...
@@ -406,13 +406,13 @@ proxy_push()
REFNAME
=
"
$3
"
# --- Pattern of branches to proxy pushes
whitelisted
=
$(
expr
"
$branch
"
:
"
\(
master
\)
"
)
allowlist
=
$(
expr
"
$branch
"
:
"
\(
master
\)
"
)
case
"
$refname
"
in
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
error
=
"
$(
git push
--quiet
$TARGET_REPO
$NEWREV
:
$REFNAME
2>&1
)
"
fail
=
$?
...
...
@@ -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.
-
It does not regard different types of authentication mechanisms for the mirror.
-
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`
is seen as a ref update and Git will complain about it.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment