Fixed computation of repository argument