Cargo update dependencies failed case by execute git command failed #14152
Labels
A-git
Area: anything dealing with git
C-bug
Category: bug
Command-add
S-propose-close
Status: A team member has nominated this for closing, pending further input from the team
Problem
Description
Cargo add personal repo failed.
It seems that cargo use git command only read the global configuration.
Steps
cargo new foo && cd foo
git config url."ssh://git@<personal git address>".insteadOf "https://<personal git address>"
mkdir .cargo
cargo add <repo name> --git <https://<personal git address>/<repo name>.git
Possible Solution(s)
I don't know how to fix it, but for now I add git global configuration to fix it.
git config --global url."ssh://git@<personal git address>".insteadOf "https://<personal git address>"
Notes
No response
Version
The text was updated successfully, but these errors were encountered: