Update clar to a0b00f0
Merge pull request #2168 from ethomson/clar

Update clar to a0b00f0
git_oid_fromstrn: Simplify the implementation and fix memory access issues
blame: Fix compare function's data types

Previously the hunk_byfinalline_search_cmp function was called with different
data types (size_t and uint32_t) for the key argument but expected only the
former resulting in an invalid memory access when passed the latter on a 64 bit
machine.

The following patch makes sure that the function is called and works with the
same type (size_t).
local transport: catch double-opens

Combinations of connect + fetch can call local_open multiple
times. Detect this and skip the initialization stage.
commit: simplify and correct refcounting in nth_gen_ancestor

We can make use of git_object_dup to use refcounting instead of pointer
comparison to make sure we don't free the caller's object.

This also lets us simplify the case for '~0' which is now just an
assignment instead of looking up the object we have at hand.
branch: fix leak when checking against HEAD

We look up a reference in order to figure out if it's the current
branch, which we need to free once we're done with the check.

As a bonus, only perform the check when we're passed the force flag, as
it's a useless check otherwise.
Plug a few leaks in the tests
Merge pull request #2169 from libgit2/valgrind

Plug leaks
Merge pull request #2167 from mekishizufu/memory_access_fixes

Fun with memory access