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

[BUG] "git rebase -r" lacks sanitation on merges with arbitrary reference syntax

From
Yydirson@free.fr <ydirson@free.fr>
Date
Oct 24, 2019, 10:42 UTC
Message-ID
<479118979.-772834452.1571913751603.JavaMail.root@zimbra39-e7>
In-Reply-To
<717060483.-772858077.1571913448492.JavaMail.root@zimbra39-e7>
Hello,
I have a branch which does successive merges from a vendor branch, like:
 git merge vendor/poky-intercepts^{/warrior}'
 git merge vendor/poky-intercepts^{/zeus}'
Now if I try to use "rebase -r" across such a merge, the result is:
 error: refusing to update ref with bad name 'refs/rewritten/vendor/poky-intercepts^{/warrior}'
 hint: Could not execute the todo command
 hint: 
 hint:     label vendor/poky-intercepts^{/warrior}
 hint: 
 hint: It has been rescheduled; To edit the command before continuing, please
 hint: edit the todo list first:
 hint: 
 hint:     git rebase --edit-todo
 hint:     git rebase --continue
If I manually sanitize the label name, everything's fine.
Next: Johannes Schindelin
Message 1 of 2 in “[BUG] "git rebase -r" lacks sanitation on merges with arbitrary reference syntax”
  1. ydirson@free.frOct 24, 2019
  2. Johannes SchindelinOct 25, 2019

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.