git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/3] remote: reject invalid branch names

From
Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 25, 2026, 18:55 UTC
Message-ID
<pull.2429.git.git.1795632934.gitgitgadget@gmail.com>

Reject invalid branch names in remote add -t, add -m and set-branches before any configuration is written, instead of silently breaking every future fetch on that remote.

Harald Nordgren (3):
  remote: reject invalid branch names in add -t
  remote: reject invalid branch names in set-branches
  remote: reject invalid branch names in add -m
 builtin/remote.c  | 27 +++++++++++++++++++++++++++
 t/t5505-remote.sh | 28 ++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
base-commit: 6de20f6092dcf9bdb1c8efe03db4b70c82b423dd
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2429%2FHaraldNordgren%2Fremote-add-branch-validate-name-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2429/HaraldNordgren/remote-add-branch-validate-name-v1
Pull-Request: https://github.com/git/git/pull/2429
-- 
gitgitgadget
Next: Harald Nordgren via GitGitGadget
Message 1 of 7 in “remote: reject invalid branch names”
  1. 0/3 remote: reject invalid branch namesHarald Nordgren via GitGitGadget, Nov 25, 2026
  2. 1/3 remote: reject invalid branch names in add -tHarald Nordgren via GitGitGadget, Nov 25, 2026
  3. Junio C HamanoNov 26, 2026
  4. 2/3 remote: reject invalid branch names in set-branchesHarald Nordgren via GitGitGadget, Nov 25, 2026
  5. Junio C HamanoNov 26, 2026
  6. 3/3 remote: reject invalid branch names in add -mHarald Nordgren via GitGitGadget, Nov 25, 2026
  7. Junio C HamanoNov 26, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.