From a90a8e7a619a8b42f819bad62eb4e9d1cfb63b47 Mon Sep 17 00:00:00 2001 From: Trevor Manz Date: Fri, 1 Nov 2024 13:03:21 -0400 Subject: [PATCH] Fix `add httpx` example with real git branch (#8756) ## 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`. ## Test Plan N/A --- docs/concepts/dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/concepts/dependencies.md b/docs/concepts/dependencies.md index fd7c9d7d7108..3f1594b6cf89 100644 --- a/docs/concepts/dependencies.md +++ b/docs/concepts/dependencies.md @@ -140,7 +140,7 @@ A revision (i.e., commit), tag, or branch may also be included: ```console $ uv add git+https://github.com/encode/httpx --tag 0.27.0 -$ uv add git+https://github.com/encode/httpx --branch main +$ uv add git+https://github.com/encode/httpx --branch master $ uv add git+https://github.com/encode/httpx --rev 326b9431c761e1ef1e00b9f760d1f654c8db48c6 ```