|
|
|
|
|
by Sesse__
699 days ago
|
|
It is so that the push doesn't actually become a push. :-) If the pre-receive hook exits with success, the push goes through and random people can write whatever they want to my repository. If it fails, the repository is left exactly as it was (including, as you point out, the quarantined temporary objects going away). One could in theory use git namespaces to keep the new branches but not make them overwrite existing ones, but then people could store porn or whatever for free on your server and have it be served to others. (I wrote the blog post) |
|
> keep the new branches but not make them overwrite existing ones, but then people could store porn or whatever for free on your server and have it be served to others
When your program sends the mail, do you use any external services for that (GMail, etc) or do you run a local SMTP server? How about the receiving address, is that one self-hosted or powered by a third-party?