check main branch by default when cargo install --git executed #8827
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Due to recent changes default branch of new git projects will be set to
main
instead ofmaster
, so it is probably good idea to check both default branch names. Attempt to install project withmain
default branch with justcargo install --git
currently will fail withCurrent workaround requires explicitly pass
--branch main
to cargo.last tested on
cargo 1.47.0 (f3c7e066a 2020-08-28)
The text was updated successfully, but these errors were encountered: