Skip to content

Commit

Permalink
Support vendoring with different revs from same git repo
Browse files Browse the repository at this point in the history
Signed-off-by: Atkins Chang <[email protected]>
  • Loading branch information
AtkinsChang committed Dec 21, 2022
1 parent 0200d3b commit f114298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cargo/ops/vendor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f114298

Please sign in to comment.