mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-04 19:30:51 +01:00
make scmhooks compatible between python 2 and 3
This commit is contained in:
@@ -90,7 +90,6 @@ def callHookUrl(ui, repo, hooktype, node):
|
||||
ui.debug( b"send scm-hook to " + url.encode() + b" and " + node + b"\n" )
|
||||
values = {'node': node.decode("utf-8"), 'challenge': challenge, 'token': token, 'repositoryPath': repo.root, 'repositoryId': repositoryId}
|
||||
conn = client.post(url, values)
|
||||
ui.warn(b"some thing strange")
|
||||
if 200 <= conn.code < 300:
|
||||
ui.debug( b"scm-hook " + hooktype + b" success with status code " + str(conn.code).encode() + b"\n" )
|
||||
printMessages(ui, conn)
|
||||
|
||||
Reference in New Issue
Block a user