Re: git pull --rebase should use fast forward merge if possible
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 29, 2016, 20:43 UTC
- Message-ID
- <CAPc5daURyXO6-yaOWPhvvdS8Dr5psEEc8MVP4wQJ_AuxyZraRg@mail.gmail.com>
- In-Reply-To
- <CAGZ79kYS=XWBpEBJsj95FV+j+HLxg=5xqwD73618t7ERYrKUfA@mail.gmail.com>
On Wed, Jun 29, 2016 at 1:40 PM, Stefan Beller <sbeller@google.com> wrote:
Show 6 quoted lines
>> + merge_head = lookup_commit_reference(merge_heads.sha1[0]); > > The crashes for merge_heads.nr == 0. > (I did not inspect code further up if this is caught before, I think > it would trigger if > you and the remote are on an initial commit with no parents?)
Perhaps you can inspect code before you start typing?
die_no_merge_candidates() would have triggered, I would imagine.
Note that I won't be applying this without test updates and proper log message, so no need to worry about the style yet ;-)