mirror of
https://github.com/clearml/clearml-agent
synced 2025-04-21 06:34:36 +00:00
Change default agent.enable_git_ask_pass
to True
This commit is contained in:
parent
030cbb69f1
commit
f5861b1e4a
@ -45,8 +45,8 @@
|
|||||||
# it solves passing user/token to git submodules.
|
# it solves passing user/token to git submodules.
|
||||||
# this is a safer way to ensure multiple users using the same repository will
|
# this is a safer way to ensure multiple users using the same repository will
|
||||||
# not accidentally leak credentials
|
# not accidentally leak credentials
|
||||||
# Only supported on Linux systems, it will be the default in future releases
|
# Note: this is only supported on Linux systems
|
||||||
# enable_git_ask_pass: false
|
# enable_git_ask_pass: true
|
||||||
|
|
||||||
# in docker mode, if container's entrypoint automatically activated a virtual environment
|
# in docker mode, if container's entrypoint automatically activated a virtual environment
|
||||||
# use the activated virtual environment and install everything there
|
# use the activated virtual environment and install everything there
|
||||||
|
@ -555,7 +555,7 @@ class Git(VCS):
|
|||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(Git, self).__init__(*args, **kwargs)
|
super(Git, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
self._use_ask_pass = False if not self.session.config.get('agent.enable_git_ask_pass', None) \
|
self._use_ask_pass = False if not self.session.config.get('agent.enable_git_ask_pass', True) \
|
||||||
else sys.platform == "linux"
|
else sys.platform == "linux"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -58,8 +58,8 @@ agent {
|
|||||||
# it solves passing user/token to git submodules.
|
# it solves passing user/token to git submodules.
|
||||||
# this is a safer way to ensure multiple users using the same repository will
|
# this is a safer way to ensure multiple users using the same repository will
|
||||||
# not accidentally leak credentials
|
# not accidentally leak credentials
|
||||||
# Only supported on Linux systems, it will be the default in future releases
|
# Note: this is only supported on Linux systems
|
||||||
# enable_git_ask_pass: false
|
# enable_git_ask_pass: true
|
||||||
|
|
||||||
# in docker mode, if container's entrypoint automatically activated a virtual environment
|
# in docker mode, if container's entrypoint automatically activated a virtual environment
|
||||||
# use the activated virtual environment and install everything there
|
# use the activated virtual environment and install everything there
|
||||||
|
Loading…
Reference in New Issue
Block a user