This tool recursively copies/synchronizes a GitLab group from one GitLab server to another.
@@ -47,6 +48,10 @@ options:
--include-from INCLUDE_FROM
a file which lists paths to include (one per line); incompatible with --include
--insecure skip SSL verification
--include-branch INCLUDE_BRANCH
branch to include for git sync, comma-separated and supporting globbing;'!default' is the default value and translated to the default branch of the source project
--exclude-branch EXCLUDE_BRANCH
branch to exclude for git sync, comma-separated and supporting globbing;'!default' is translated to the default branch of the source project; Empty by default
--update-release force the update of the latest release
--update-avatar force update the avatar images even when they exist and look the same
--no-group-description
@@ -84,6 +89,8 @@ options:
| `--include` | `$INCLUDE` | project/group path(s) to include (multiple CLI option; env. var. is coma separated; all paths included by default) |
| `--include-from` | `$INCLUDE_FROM` | a file which lists paths to include (one per line); incompatible with `--include` / `$INCLUDE` |
| `--include-branch` | `$INCLUDE_BRANCH` | branch(s) to include for git sync, comma-separated and supporting globbing; `!default` is the default value and translated to the default branch of the source project; *Examples: `!default`, `develop`, `feat-*`* |
| `--exclude-branch` | `$EXCLUDE_BRANCH` | branch(s) to exclude for git sync, comma-separated and supporting globbing; `!default` is translated to the default branch of the source project; Empty by default; Take precedence over `--include-branch`; *Examples: `!default`, `develop`, `feat-*`* |
| `--update-release` | `$UPDATE_RELEASE` | set to force the update of the latest release (in order to trigger GitLab CI/CD catalog publication) |
| `--update-avatar` | `$UPDATE_AVATAR` | force update the avatar images even when they exist and look the same |
| `--no-group-description` | `$GROUP_DESCRIPTION_DISABLED` | don't synchronize group description |
help="branch to include for git sync, comma-separated and supporting globbing; '!default' is the default value and translated to the default branch of the source project",
help="branch to exclude for git sync, comma-separated and supporting globbing; '!default' is translated to the default branch of the source project; Empty by default",
)
parser.add_argument(
"--update-release",
default=trueish_env_var("UPDATE_RELEASE"),
@@ -1072,6 +1182,12 @@ def run() -> None:
print(
f"- cache dir (--cache-dir) : {AnsiColors.CYAN}{args.cache_dir}{AnsiColors.RESET}"