pungi/pungi
Lubomír Sedlář f3485410ad
Add support for git-credential-helper
This patch adds an additional field `options` to scm_dict, which can be
used to provide additional information to the backends.

It implements a single new option for GitWrapper. This option allows
setting a custom git credentials wrapper. This can be useful if Pungi
needs to get files from a git repository that requires authentication.

The helper can be as simple as this (assuming the username is already
provided in the url):

    #!/bin/sh
    echo password=i-am-secret

The helper would need to be referenced by an absolute path from the
pungi configuration, or prefixed with ! to have git interpret it as a
shell script and look it up in PATH.

See https://git-scm.com/docs/gitcredentials for more details.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
JIRA: RHELCMP-11808
(cherry picked from commit ada8f4e346)
2023-11-10 16:54:59 +02:00
..
compose_metadata Format code base with black 2020-02-05 17:35:47 +08:00
ostree ostree: Add unified core mode for compose in rpm-ostree 2022-08-23 10:52:45 +02:00
phases Fix compatibility with createrepo_c 0.21.1 2023-11-10 16:51:53 +02:00
scripts Support OIDC Client Credentials authentication to CTS 2023-11-10 16:54:58 +02:00
wrappers Add support for git-credential-helper 2023-11-10 16:54:59 +02:00
__init__.py Format code base with black 2020-02-05 17:35:47 +08:00
arch.py Format code base with black 2020-02-05 17:35:47 +08:00
arch_utils.py Format code 2021-03-02 18:31:45 +08:00
checks.py Add support for git-credential-helper 2023-11-10 16:54:59 +02:00
common.py Format code base with black 2020-02-05 17:35:47 +08:00
compose.py Support OIDC Client Credentials authentication to CTS 2023-11-10 16:54:58 +02:00
config.py Format code base with black 2020-02-05 17:35:47 +08:00
createiso.py iso: Support joliet long names 2023-11-10 16:54:42 +02:00
dnf_wrapper.py Format code base with black 2020-02-05 17:35:47 +08:00
errors.py Move UnsignedPackagesError to a separate file 2021-02-08 10:16:32 +00:00
gather.py Fix black complaints 2023-11-10 16:50:38 +02:00
gather_dnf.py gather-dnf: Run latest() later 2023-11-10 16:54:43 +02:00
graph.py Format code 2021-03-02 18:31:45 +08:00
ks.py Format code base with black 2020-02-05 17:35:47 +08:00
linker.py Hardlink or copy scratch builds always 2020-08-07 18:00:19 +08:00
media_split.py Fix black complaint 2022-08-10 09:04:41 +02:00
metadata.py Remove useless debug message 2023-11-10 16:52:27 +02:00
module_util.py Fix module defaults and obsoletes validation 2022-06-10 11:35:26 +00:00
multilib_dnf.py Format code base with black 2020-02-05 17:35:47 +08:00
multilib_yum.py Format code base with black 2020-02-05 17:35:47 +08:00
notifier.py Fix the wrong working directory for the progress_notification script 2022-03-01 11:25:06 +00:00
pathmatch.py Remove FSF address from comments 2016-09-23 10:26:43 +02:00
paths.py Add module obsoletes feature 2022-01-12 12:51:37 +01:00
profiler.py profiler: Flush stdout before printing 2022-08-29 05:57:14 +00:00
runroot.py Merge branch 'master' into a8_updated 2022-11-07 23:38:38 +02:00
util.py Add support for git-credential-helper 2023-11-10 16:54:59 +02:00