Bug: Segfault when doing "git diff"

2015-10-28 Thread Mathias L. Baumann
Hello dear git devs, I just stumbled upon a segfault when doing just "git diff" in my repo. I managed to create a minimal repo setup where the bug is reproducable. The problem seems to be a mix of having an untracked submodule and having set an alternates file for one submodule. Attached

Re: Bug: Segfault when doing "git diff"

2015-10-28 Thread Victor Leschuk
On 10/28/2015 02:58 PM, Mathias L. Baumann wrote: Hello dear git devs, I just stumbled upon a segfault when doing just "git diff" in my repo. I managed to create a minimal repo setup where the bug is reproducable. The problem seems to be a mix of having an untracked submodule and having

Re: Bug: Segfault when doing "git diff"

2015-10-28 Thread Mathias L. Baumann
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 On 28/10/15 13:24, Victor Leschuk wrote: On 10/28/2015 02:58 PM, Mathias L. Baumann wrote: Hello dear git devs, I just

Re: Bug: Segfault when doing "git diff"

2015-10-28 Thread Victor Leschuk
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