kas: add GIT_CREDENTIAL_USEHTTPPATH environment variable

This allows the configuration of the git option 'credential.usehttppath' if
the used credential helper requires this.

Signed-off-by: Christoph Freundl <Christoph.Freundl@ifm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Freundl, Christoph' via kas-devel
2023-03-02 08:25:51 +01:00
committed by Jan Kiszka
parent 10e6df438f
commit 8f61dcfeb6
3 changed files with 10 additions and 4 deletions

View File

@@ -152,6 +152,7 @@ class SetupHome(Command):
# This should be kept up to date with any code in execute()
ENV_VARS = [
'GIT_CREDENTIAL_HELPER',
'GIT_CREDENTIAL_USEHTTPPATH',
'AWS_CONFIG_FILE',
'AWS_SHARED_CREDENTIALS_FILE',
'NETRC_FILE',
@@ -187,6 +188,10 @@ class SetupHome(Command):
'\thelper = '
+ os.environ.get('GIT_CREDENTIAL_HELPER')
+ '\n')
if os.environ.get('GIT_CREDENTIAL_USEHTTPPATH', False):
fds.write('\tuseHttpPath = '
+ os.environ.get('GIT_CREDENTIAL_USEHTTPPATH')
+ '\n')
if os.environ.get('AWS_CONFIG_FILE', False) \
and os.environ.get('AWS_SHARED_CREDENTIALS_FILE', False):