Shallow-clone detection

This adds a simple call to detect a shallow clone. The test repository was made thusly:

```sh
libgit2/tests-clar/resources % git clone file://testrepo.git shallow.git --depth=2 --bare      
```