diff --git a/execute.py b/execute.py index 8a97a27..34e0276 100755 --- a/execute.py +++ b/execute.py @@ -21,23 +21,23 @@ base64_string = 'AUTHORIZATION: basic ' + base64_bytes.decode("utf-8") key = 'http.'+GITHUB_SERVER_URL+'/.extraheader' value = '"'+base64_string+'"' -cmd = 'git config --global ' + key + ' ' + value +cmd = 'git config --local ' + key + ' ' + value result = os.popen(cmd) key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf' -cmd = 'git config --global ' + key + ' ' + GITHUB_SERVER_URL +cmd = 'git config --local ' + key + ' ' + GITHUB_SERVER_URL result = os.popen(cmd) -# cmd = 'git config list --local' -# print(cmd) -# result = os.popen(cmd) -# print(result.read()) - -cmd = 'git config list --global' +cmd = 'git config list --local' print(cmd) result = os.popen(cmd) print(result.read()) +# cmd = 'git config list --global' +# print(cmd) +# result = os.popen(cmd) +# print(result.read()) + cmd = 'git clone ' + \ GITHUB_SERVER_URL + '/' + \ GITHUB_REPOSITORY + ' ' + os.getcwd()