Add function to open repository from subpaths