revwalk: refuse push of non-commit objects Check the type of the pushed object immediately instead of starting the walk and failing in between.