Fix bug on Repository::getDiff()

fixed $repository is not defined