pub fn configure_remote<'r>(
repo: &'r Repository,
name: &str,
fetch: &Url,
push: &Url,
) -> Result<Remote<'r>, Error>Expand description
Configure a repository’s radicle remote.
The entry for this remote will be:
[remote.<name>]
url = <fetch>
pushurl = <push>
fetch = +refs/heads/*:refs/remotes/<name>/*
fetch = +refs/tags/*:refs/remotes/<name>/tags/*
tagOpt = --no-tags
pruneTags = falseBecause of the +refs/tags/*:… refspec, set:
pruneTags = falseto ensure thatgitdoes not delete tags because the remote does not have them. Tags for a Radicle repository are synthesised by canonical refs and thus, theradremote will handle fetching them.tagOpt = --no-tagsto ensure that tags are not fetched and stored underrefs/tags, again, because these are fetched by theradremote.