mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Record results from testing
Update specifying-dependencies.md to show not specifying the branch for git doesn't always use the main branch.
This commit is contained in:
parent
928b9561c1
commit
8a1d6fd2db
@ -140,7 +140,8 @@ Cargo will fetch the `git` repository at this location then look for a
|
||||
of a workspace and setting `git` to the repository containing the workspace).
|
||||
|
||||
Since we haven’t specified any other information, Cargo assumes that
|
||||
we intend to use the latest commit on the main branch to build our package.
|
||||
we intend to use the latest commit on the Default ("base") branch branch
|
||||
to build our package, which may not necessarily be the main branch.
|
||||
You can combine the `git` key with the `rev`, `tag`, or `branch` keys to
|
||||
specify something else. Here's an example of specifying that you want to use
|
||||
the latest commit on a branch named `next`:
|
||||
|
Loading…
x
Reference in New Issue
Block a user