mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Disable git interactive password prompts
We do not want to be prompting the user for a password during layer updates or upstream checks, e.g. in the case where a repo requires authentication, or on github where any fetch of a nonexistent repo apparently triggers authentication. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
8067208d2d
commit
7954acad9f
1
TODO
1
TODO
|
@ -2,7 +2,6 @@ TODO:
|
||||||
|
|
||||||
Bugs
|
Bugs
|
||||||
* Duplication of first maintainer when editing to add a second?
|
* Duplication of first maintainer when editing to add a second?
|
||||||
* meta-debian seems to be prompting for github credentials during recipe parsing?
|
|
||||||
* Remote patches in SRC_URI trigger errors
|
* Remote patches in SRC_URI trigger errors
|
||||||
* We're wasting time gathering layer info at the start for layers that have not changed
|
* We're wasting time gathering layer info at the start for layers that have not changed
|
||||||
* import_layer on OE-Core then a layer that depends on core does not work
|
* import_layer on OE-Core then a layer that depends on core does not work
|
||||||
|
|
|
@ -244,6 +244,11 @@ def main():
|
||||||
fetchedrepos = []
|
fetchedrepos = []
|
||||||
failedrepos = {}
|
failedrepos = {}
|
||||||
|
|
||||||
|
# We don't want git to prompt for any passwords (e.g. when accessing renamed/hidden github repos)
|
||||||
|
os.environ['SSH_ASKPASS'] = ''
|
||||||
|
os.environ['GIT_ASKPASS'] = ''
|
||||||
|
os.environ['GIT_TERMINAL_PROMPT'] = '0'
|
||||||
|
|
||||||
listhandler = utils.ListHandler()
|
listhandler = utils.ListHandler()
|
||||||
listhandler.setFormatter(logging.Formatter("%(levelname)s: %(message)s"))
|
listhandler.setFormatter(logging.Formatter("%(levelname)s: %(message)s"))
|
||||||
logger.addHandler(listhandler)
|
logger.addHandler(listhandler)
|
||||||
|
|
|
@ -17,6 +17,11 @@ def common_setup():
|
||||||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '../../')))
|
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '../../')))
|
||||||
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '../../layerindex')))
|
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '../../layerindex')))
|
||||||
|
|
||||||
|
# We don't want git to prompt for any passwords (e.g. when accessing renamed/hidden github repos)
|
||||||
|
os.environ['SSH_ASKPASS'] = ''
|
||||||
|
os.environ['GIT_ASKPASS'] = ''
|
||||||
|
os.environ['GIT_TERMINAL_PROMPT'] = '0'
|
||||||
|
|
||||||
def get_logger(name, settings):
|
def get_logger(name, settings):
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user