Subject: Re: Bug: Segfault when doing "git diff"

From: Victor Leschuk <[email-masked]>
Date: Wed, 28 Oct 2015 16:54:18 +0300

On 10/28/2015 04:35 PM, Mathias L. Baumann wrote:
> I was using the latest git version 2.6.2 already.
> I suspect it is due to a .gitconfig. This is what is probably required:
>
> ➜  ~  cat .gitconfig
> [diff]
>     submodule = log
Yep, that did the trick.

The segfault is from

sha1_file.c:

/* add the alternate entry */
  *alt_odb_tail = ent; /* <===== alt_obd_tail is NULL here */
alt_odb_tail = &(ent->next);
ent->next = NULL;

Will try to take a closer look at it.

--
Victor