popcommit now pops the next commit an returns it