projects
/
git-mirror.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore more things
[git-mirror.git]
/
githook.py
diff --git
a/githook.py
b/githook.py
index 3d546be5843776042141674149de7b9fef04592f..47a87e95115ac0092e1948ea2fd428c0a500c5ad 100755
(executable)
--- a/
githook.py
+++ b/
githook.py
@@
-45,7
+45,7
@@
if __name__ == "__main__":
repo.update_mirrors(ref, oldsha, newsha)
except Exception as e:
if repo is not None:
repo.update_mirrors(ref, oldsha, newsha)
except Exception as e:
if repo is not None:
- repo.mail_owner("There was a problem running the git-mirror git hook:\n\n{
0
}".format(traceback.format_exc()))
+ repo.mail_owner("There was a problem running the git-mirror git hook:\n\n{}".format(traceback.format_exc()))
# do not print all the details
# do not print all the details
- sys.stderr.write("We have a problem:\n{
0
}".format('\n'.join(traceback.format_exception_only(type(e), e))))
+ sys.stderr.write("We have a problem:\n{}".format('\n'.join(traceback.format_exception_only(type(e), e))))