Workaround segfault when refreshing the status view
commite843f0e53b56ac49b471e0935bff385de40fcc99
authorJonas Fonseca <jonas.fonseca@gmail.com>
Mon, 9 Feb 2015 15:00:00 +0000 (9 10:00 -0500)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Mon, 9 Feb 2015 15:00:00 +0000 (9 10:00 -0500)
tree463c11933fce4a6437da13927f2ba9e87cd985b1
parent196c4bc47d1c147e24f27e04001724d41c6ccf3d
Workaround segfault when refreshing the status view

When refreshing the status view, it will try to readd the HEAD
reference. This caused a corruption in the reference DB, which led to a
segfault when returning to the main view.

The workaround will simply skip any updates to the ID reference list
when the ID does not change for an existing ref. More work is needed to
properly update the ID reference list when changes occur.

References #370.
src/refdb.c
src/repo.c
test/regressions/github-370-test [new file with mode: 0755]