An anonymous remote is not configured and cannot therefore have configured refspecs. Remove the parameter which adds this from the constructor.