remove extension from repository path