How to specify a GIT BRANCH for the Cargo Index

So I have a local git repo for index replacement
my cargo/config.toml file has this:

[net]
git-fetch-with-cli = true

[source]

[source.mirror]
registry="ssh://git@gitlab.COMPANY.local/pure-testing/duane_cargo_index.git"

[source.crates-io]

replace-with = "mirror"

QUESTION: How can I specify the BRANCH (or TAG) name of the repo to use for the index?
The syntax of cargo/config.toml - does not seem to support a TAG or BRANCH name?

Stated differently: For this REPO I am required to use a branch name, those are the rules I am required to follow.

The [source.<name>] tables support setting git sources via git, branch, tag and rev fields:

1 Like

That solves part of the problem but now ... I face this problem:

Cargo config - alternate resistry and "checksums"

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.