Everyone is so eager to be recognized and they often times act selfish in a self-sabotaging manner just to prove themselves. When managers/bosses pick on this they gain control over their people.
Working in a company that forces you to prove yourself through sacrifices like this will burnout everyone.
In this scenario the manager should have not rewarded weekend sacrifices but they dont care about you, they care about results. You can kill yourself as long as they see something.
This sets a bad example in the team by rewarding extra time, poor communication, selfish acts, stepping on each others toes, etc.
This creates a unhealthy competition which corrupts and tear teams apart.
Have you stopped to think why the product in question did not work? How did they get to a state which the software was so bad to the point of not running locally? People acting selfishly without control? Sus if you ask me