Replacing match with git in insert_routes method