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

git branch -M" regression in 1.7.7?

From
☂谢☂Josh Chia (谢任中) <joshchia@gmail.com>
Date
Nov 26, 2011, 00:36 UTC
Message-ID
<CALxtSbRbwkVDKJcXiKY9rHYCjA3XGgCytbXQnRhQvbEnY8SpjA@mail.gmail.com>

On git 1.7.7.3, when I try to "git branch -M master" when I'm already on a branch 'master', I get this error message: Cannot force update the current branch

On 1.7.6.4, the command succeeds.
Is this intended?
Next: Jonathan Nieder
Message 1 of 9 in “git branch -M" regression in 1.7.7?”
  1. ☂Josh Chia (谢任中)Nov 26, 2011
  2. Jonathan NiederNov 26, 2011
  3. Test renaming a branch to itselfConrad Irwin, Nov 26, 2011
  4. Jonathan NiederNov 26, 2011
  5. Conrad IrwinNov 26, 2011
  6. Jonathan NiederNov 26, 2011
  7. Junio C HamanoNov 26, 2011
  8. Andreas SchwabNov 26, 2011
  9. Junio C HamanoNov 28, 2011

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.