diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-30 12:22:09 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-30 12:27:29 -0700 |
commit | 2878f32a224e02ed76cff6b799883f4e319f9e3a (patch) | |
tree | 3a71e5ad5be27509641b26c716f69ff1f9619479 /tests/testunitconversion.cpp | |
parent | 1c42750cdf08e425a9f9000a1784a868bf797ef8 (diff) | |
download | subsurface-2878f32a224e02ed76cff6b799883f4e319f9e3a.tar.gz |
Improve parsing of git error message
This is rather fragile code, and the capitalization of the error message
in libgit2 changed at some point. But commit 794739b4c0 ("strstr is a
case sensitive compare") didn't really fix the problem - as it broke
that same check for older libgit2 versions.
Instead use our new helper function to make it work with libgit2 old and
new.
Also, add some more error output so the next time we run into this it's
more obvious what broke and where.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testunitconversion.cpp')
0 files changed, 0 insertions, 0 deletions