extract subdirectory as new repo