Restore git working dir after compiling libc++