| |
/// fetch = +refs/tags/*:refs/remotes/<name>/tags/*
|
| |
/// tagOpt = --no-tags
|
| |
/// pruneTags = false
|
| - |
/// ```
|
| - |
///
|
| - |
/// Because of the `refs/tags/*` refspec, we have to set two options:
|
| - |
/// * `pruneTags = false`, and
|
| - |
/// * `tagOpt = --no-tags`
|
| - |
///
|
| - |
/// The `pruneTags` is to ensure that `git` does not delete tags because the
|
| - |
/// remote has them. Tags for a Radicle repository are synthesised by canonical
|
| - |
/// refs and thus, the `rad` remote will handle fetching them.
|
| + |
/// ```
|
| |
///
|
| - |
/// The `tagOpt` is to ensure that we do not fetch the tags from the remote and
|
| - |
/// put them under `refs/tags`, again, because these are fetched by the `rad`
|
| - |
/// remote.
|
| + |
/// Because of the `+refs/tags/*:…` refspec, set:
|
| + |
/// 1. `pruneTags = false` to ensure that `git` does not delete tags because
|
| + |
/// the remote does not have them. Tags for a Radicle repository are
|
| + |
/// synthesised by canonical refs and thus, the `rad` remote will handle
|
| + |
/// fetching them.
|
| + |
/// 2. `tagOpt = --no-tags` to ensure that tags are not fetched and stored
|
| + |
/// under `refs/tags`, again, because these are fetched by the `rad` remote.
|
| |
pub fn configure_remote<'r>(
|
| |
repo: &'r git2::Repository,
|
| |
name: &str,
|