Fix undefined $repository

Auditors: btrahan