There are some edge cases not taken into account by the custom code (See https://piazza.com/class/kqa3fifvl8n4vg?cid=57) Use git gem instead to avoid the issues caused by the current hacks.