How to specify a GIT BRANCH for the Cargo Index

⚓ Rust    📅 2025-09-15    👤 surdeus    👁️ 1      

surdeus

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.

2 posts - 2 participants

Read full topic

🏷️ Rust_feed