t6050: check pushing something based on a replaced commit