From 705127ed849d6da67c15f4c247346b0fb1a8e3dd Mon Sep 17 00:00:00 2001 From: Churikova Tetiana Date: Wed, 18 Apr 2018 15:09:16 +0300 Subject: [PATCH] 1 attempt to fix git Fatal: Could not read Username for "https://github.com" --- test/end-to-end/pages/thirdparty/github.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/end-to-end/pages/thirdparty/github.py b/test/end-to-end/pages/thirdparty/github.py index cd2d347..4ad6c20 100644 --- a/test/end-to-end/pages/thirdparty/github.py +++ b/test/end-to-end/pages/thirdparty/github.py @@ -282,7 +282,9 @@ class GithubPage(BasePageObject): os.mkdir(repo_folder) os.chdir(repo_folder) self.local_repo_path = os.getcwd() - fork = 'https://github.com/%s/%s.git' % (username, repo_name) + + fork = 'https://%s:%s@github.com/%s/%s.git' % (test_data.config['DEV']['gh_login'], + test_data.config['DEV']['gh_password'], username, repo_name) logging.info(('Cloning from %s to %s' % (fork, self.local_repo_path))) repo = git.Repo.clone_from(fork, self.local_repo_path) logging.info(('Successefully cloned to: %s' % self.local_repo_path))