Clear git error before croak

Sometimes people can use Git::Raw with try-catch.
In that case I think clearing git error is needed
since libgit2 doesn't set error on some case like
ambiguous(not every time).