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

Re: Allowing "/" in the name of a git remote is a strange choice

From
Lidong Yan <yldhome2d2@gmail.com>
Date
Jul 4, 2025, 08:17 UTC
Message-ID
<AC45E9DD-5E2B-4DD5-B2C4-9276C70D05A6@gmail.com>
In-Reply-To
<aGdi6GRbI6Txm25Q@pks.im>
Patrick Steinhardt <ps@pks.im> write:
Show 5 quoted lines
> 
> We cannot just blanket-disallow this now, true. But shouldn't Git be
> able to detect this conflict, similar to how a user cannot have both
> refs/heads/branch and refs/heads/branch/nested?
> 

I also find `git fetch` works fine, but check out remote branch detect this conflict

$ git branch --set-upstream-to=origin/chat/master chat/master
Gives

fatal: not tracking: ambiguous information for ref 'refs/remotes/origin/chat/master' hint: There are multiple remotes whose fetch refspecs map to the remote hint: tracking ref 'refs/remotes/origin/chat/master': hint: origin/chat hint: origin hint: hint: This is typically a configuration error. hint: hint: To support setting up tracking branches, ensure that hint: different remotes' fetch refspecs map into different hint: tracking namespaces

Previous: Lidong YanNext: Junio C Hamano
Message 5 of 18 in “Allowing "/" in the name of a git remote is a strange choice”
  1. Per CederqvistJul 3, 2025
  2. Junio C HamanoJul 4, 2025
  3. Patrick SteinhardtJul 4, 2025
  4. Lidong YanJul 4, 2025
  5. Lidong YanJul 4, 2025
  6. Junio C HamanoJul 4, 2025
  7. Per CederqvistJul 4, 2025
  8. Jeff KingJul 5, 2025
  9. remote: detect collisions in remote namesJeff King, Jul 5, 2025
  10. Patrick SteinhardtJul 7, 2025
  11. Jeff KingJul 7, 2025
  12. Junio C HamanoJul 7, 2025
  13. Jeff KingJul 8, 2025
  14. Jeff KingJul 8, 2025
  15. Junio C HamanoJul 8, 2025
  16. Jeff KingJul 9, 2025
  17. Junio C HamanoJul 7, 2025
  18. Raymond E. PascoJul 9, 2025

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.