async fn export_bare_clone(
source: &Path,
dest: &Path,
default_branch: &str,
include: &GlobSet,
exclude: &GlobSet,
) -> Result<()>Expand description
Clone source as a bare repository at dest, then prune it down to the
branches/tags allowed by git_ui.include/git_ui.exclude before enabling
the dumb HTTP transport.
default_branch is used to pick a sane HEAD for the bare clone if the
branch it previously pointed to got filtered out.