# git rebase with rebase-merges option creates bad ref names

2 messages from 2019-11-25 to 2019-11-26. Participants: Robert Blenis, Johannes Schindelin.
Thread: https://gitlist.dev/t/52330

## Robert Blenis, 2019-11-25 13:31

Subject: git rebase with rebase-merges option creates bad ref names
Message-ID: <CAPbTjvcPCZG---tkyQW8dCd5=LYhGmhpYg5MQSX5BPr+HEG2jw@mail.gmail.com>
URL: https://gitlist.dev/e/CAPbTjvcPCZG---tkyQW8dCd5%3DLYhGmhpYg5MQSX5BPr%2BHEG2jw%40mail.gmail.com

```
using command 'git rebase -i -r DEST' fails with "error: refusing to
update ref with bad name 'refs/rewritten/Release-170-1020-Rev-D.'"
git is taking the commit message and turning it into a reference name
that is not valid (because of the period in the message)! This
requires a bunch of manual editing of the todo list. git version
2.24.0
Thank you,
Robert Blenis

```

## Johannes Schindelin, 2019-11-26 21:55

Subject: Re: git rebase with rebase-merges option creates bad ref names
Message-ID: <nycvar.QRO.7.76.6.1911262254420.31080@tvgsbejvaqbjf.bet>
URL: https://gitlist.dev/e/nycvar.QRO.7.76.6.1911262254420.31080%40tvgsbejvaqbjf.bet
In-Reply-To: <CAPbTjvcPCZG---tkyQW8dCd5=LYhGmhpYg5MQSX5BPr+HEG2jw@mail.gmail.com>

```
Hi Robert,

On Mon, 25 Nov 2019, Robert Blenis wrote:

> using command 'git rebase -i -r DEST' fails with "error: refusing to
> update ref with bad name 'refs/rewritten/Release-170-1020-Rev-D.'"
> git is taking the commit message and turning it into a reference name
> that is not valid (because of the period in the message)! This
> requires a bunch of manual editing of the todo list. git version
> 2.24.0

Could you verify that the patch under discussion at
https://github.com/gitgitgadget/git/pull/327 fixes the issue for you?

Ciao,
Johannes

```
