Depth is meant to be an integer, but if you pass in -10, or 0, something easily done, then git just ignores it.
We might want to get this library to throw an error to prevent user-land errors of passing in these values or others.
Or if this is an issue that git itself should fix, then one for over there.