uv/docs/concepts
Trevor Manz a90a8e7a61
Fix `add httpx` example with real git branch (#8756)
<!--
Thank you for contributing to uv! To help us out with reviewing, please
consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

The example in the docs for adding a git source with `--branch` fails
because `main` doesn't exist.

```sh
uv add git+https://github.com/encode/httpx --branch main
# error: Git operation failed
#   Caused by: failed to fetch into: /Users/manzt/.cache/uv/git-v0/db/4c0b1441d92956e1
#   Caused by: failed to fetch branch `main`
#   Caused by: process didn't exit successfully: `/usr/bin/git fetch --force --update-head-ok 'https://github.com/encode/httpx' '+refs/heads/main:refs/remotes/origin/main'` (exit status: 128)
```

This PR changes the example to the default branch for httpx, `master`.

<!-- What's the purpose of the change? What does it do, and why? -->

## Test Plan

N/A

<!-- How was it tested? -->
2024-11-01 13:03:21 -04:00
..
cache.md Fix `cache-keys` typo in `tags = true` (#8422) 2024-10-21 17:35:22 +00:00
dependencies.md Fix `add httpx` example with real git branch (#8756) 2024-11-01 13:03:21 -04:00
index.md Update documentation sections (#5452) 2024-07-25 12:37:22 -05:00
projects.md Rewrite some references to "optional groups" (#8454) 2024-10-25 13:27:37 -05:00
python-versions.md Avoid selecting prerelease Python installations without opt-in (#7300) 2024-09-11 15:49:33 -05:00
resolution.md Clarify `requires-python` requirement for dependencies (#8619) 2024-10-28 00:52:55 +00:00
tools.md docs: add missing `console` highlights (#6900) 2024-08-31 19:04:19 -04:00
workspaces.md Update workspace documentation to remove legacy virtual projects (#6720) 2024-08-27 17:31:12 -04:00