projects
/
git-mirror.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to reproduce the quirky behavior of bash/execve for running scrips
[git-mirror.git]
/
webhook-core.py
diff --git
a/webhook-core.py
b/webhook-core.py
index 83cb03edd31c1ebd8c135ac4c4ea8c1f32b68df2..90432c82557839030718dfe899b1a3ef16ebb75c 100755
(executable)
--- a/
webhook-core.py
+++ b/
webhook-core.py
@@
-51,7
+51,7
@@
if __name__ == "__main__":
githubEvent = sys.argv[2]
githubSignature = sys.argv[3]
if reponame not in repos:
githubEvent = sys.argv[2]
githubSignature = sys.argv[3]
if reponame not in repos:
- raise Exception("Repository
missing or not found."
)
+ raise Exception("Repository
{} missing or not found.".format(reponame)
)
repo = repos[reponame]
# now sync this repository
repo = repos[reponame]
# now sync this repository
@@
-91,4
+91,4
@@
if __name__ == "__main__":
print("Status: 500 Internal Server Error")
print("Content-Type: text/plain")
print()
print("Status: 500 Internal Server Error")
print("Content-Type: text/plain")
print()
- print("We have a problem:\n{}".format('\n'.join(traceback.format_exception_only(type(e), e))))
+ print("
git-mirror:
We have a problem:\n{}".format('\n'.join(traceback.format_exception_only(type(e), e))))