mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Support vendoring with different revs from same git repo
Signed-off-by: Atkins Chang <atkinschang@gmail.com>
This commit is contained in:
parent
0200d3b3ca
commit
f114298149
@ -255,7 +255,9 @@ fn sync(
|
||||
let name = if source_id.is_crates_io() {
|
||||
CRATES_IO_REGISTRY.to_string()
|
||||
} else {
|
||||
source_id.url().to_string()
|
||||
// Remove `precise` since that makes the source name very long,
|
||||
// and isn't needed to disambiguate multiple sources.
|
||||
source_id.with_precise(None).as_url().to_string()
|
||||
};
|
||||
|
||||
let source = if source_id.is_crates_io() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user