Support vendoring with different revs from same git repo

Signed-off-by: Atkins Chang <atkinschang@gmail.com>
This commit is contained in:
Atkins Chang 2022-05-13 17:01:21 +08:00
parent 0200d3b3ca
commit f114298149
No known key found for this signature in database
GPG Key ID: EEB142DC0A799167

View File

@ -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() {