Test for giterr_capture
clone: don't overwrite original error message
Merge pull request #2166 from ethomson/giterr_restore

clone: don't overwrite original error message