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:
committed by
Jan Kiszka
parent
10e6df438f
commit
8f61dcfeb6
@@ -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):
|
||||
|
Reference in New Issue
Block a user