fix Repository::getDiff call with array