Обновить execute.py
This commit is contained in:
16
execute.py
16
execute.py
@@ -24,25 +24,25 @@ base64_string = 'AUTHORIZATION: basic ' + base64_bytes.decode("utf-8")
|
||||
key = 'http.'+GITHUB_SERVER_URL+'/.extraheader'
|
||||
value = '"'+base64_string+'"'
|
||||
cmd = 'git config --global ' + key + ' ' + value
|
||||
result = os.system(cmd)
|
||||
print('result:' , result)
|
||||
result = os.popen(cmd)
|
||||
print('result:' , result.read())
|
||||
|
||||
key = 'url.'+GITHUB_SERVER_URL+'/.insteadOf'
|
||||
value = '"git@'+'codex.r10x.net'+'"'
|
||||
cmd = 'git config --global ' + key + ' ' + value
|
||||
result = os.system(cmd)
|
||||
print('result:' , result)
|
||||
result = os.popen(cmd)
|
||||
print('result:' , result.read())
|
||||
|
||||
cmd = 'git config list '
|
||||
result = os.system(cmd)
|
||||
print('result:' , result)
|
||||
result = os.popen(cmd)
|
||||
print('result:' , result.read())
|
||||
|
||||
cmd = 'git clone ' + \
|
||||
GITHUB_SERVER_URL + '/' + \
|
||||
GITHUB_REPOSITORY
|
||||
print('cmd:', cmd)
|
||||
result = os.system(cmd)
|
||||
print('result:' , result)
|
||||
result = os.popen(cmd)
|
||||
print('result:' , result.read())
|
||||
|
||||
print(f"Encoded string: {base64_string}")
|
||||
print('#'*80)
|
||||
|
||||
Reference in New Issue
Block a user