Обновить execute.py

This commit is contained in:
2025-03-29 14:58:59 +03:00
parent acad34d569
commit 38f49f4675

View File

@@ -21,7 +21,12 @@ sample_string_bytes = sample_string.encode("utf-8")
base64_bytes = base64.b64encode(sample_string_bytes)
base64_string = 'AUTHORIZATION: basic ' + base64_bytes.decode("utf-8")
cmd = 'git -c http.'+GITHUB_SERVER_URL+'/.extraheader="'+base64_string+'" clone ' + \
config = 'http.'+GITHUB_SERVER_URL+'/.extraheader="'+base64_string+'"'
cmd = 'git config --global ' + config
os.system(cmd)
cmd = 'git config list '
os.system(cmd)
cmd = 'git clone ' + \
GITHUB_SERVER_URL + '/' + \
GITHUB_REPOSITORY
print('cmd:', cmd)