libgit2/libgit2 — pull request #2373 by kitbellew (2014-05-19 16:28:35+00:00)
Title: Minor fix for cmn/clone-into-mirror.

A recently added check might skip initialization of `old_fetchhead` and go
directly to cleanup. So, destruct in the opposite order of construction.