Fixes #7428,BZ1120314 - Show user friendly error when no repo name

this is sorta pre-mature optimization but it seems really wasteful to call repository_params 6 times versus storing it in a variable and accessing tha t variable 5 times.  Feel free to to raise the 'simplicity' flag in the face of pre-mature optimization though.