Re: [PATCH] Fixing segmentation fault when merging FETCH_HEAD

2016-03-20 Thread Jose Ivan B. Vilarouca Filho
From: "Jose Ivan B. Vilarouca Filho" Hello, Eric. Thanks for suggestions. I've added a test in commit replacing git fetch origin by a fake FETCH_HEAD content. merge: don't dereference NULL pointer A segmentaion fault is raised when trying to merge FETCH_HEAD formed on

[PATCH] Fixing segmentation fault when merging FETCH_HEAD

2016-03-19 Thread Jose Ivan B. Vilarouca Filho
From: "Jose Ivan B. Vilarouca Filho" A segmentaion fault is raised when trying to merge FETCH_HEAD formed only by "not-for-merge" refs. Ex: git init . git remote add origin ... git fetch origin git merge FETCH_HEAD Signed-off-by: Jose Ivan B. Vilarouca