Fixes arguments.slice bug in Repo.diff().

The variable `arguments` is not an array, and does not have a slice method.