Sitaram Chamarty <sitaramc@xxxxxxxxx> writes: > Pushing to delete a non-existent ref (git push origin :refs/heads/foo) > works without error, except for a warning that the remote is "Allowing > deletion of corrupt ref". By "works" I mean all hooks are also > executed. > > Is this expected/supported behaviour? Can I rely on it continuing to > work, especially in terms of executing hooks. This most definitely is just "we didn't bother checking the error too carefully, especially because the result of deleting something that did not exist in the first place is a no-op; anybody who tries to delete a non-existing thing is a moron and deserves whatever random result he gets". It would be a good idea to tighten it. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html