adding a check for empty repo URL