← All comics

Eighteen hundred pounds each

#190 2 images

Toby settled a clash between his and June's checkout changes by keeping both. Every customer paid twice, then got refunded twice, so the sofas went free.

The mistake

Toby resolves a merge conflict with "accept both changes", which just puts both sides of the conflicting section one after the other without combining them. His version and June's version of the checkout each charge the card, so the merged code charges every customer twice. He then resolves the conflict on June's refund the same way, which duplicates the refund call. Every customer gets both payments back, and each time nobody reads the merged result or tests it before putting it live.

Share