[git] Support Git version 2.0 in 'is_ancestor' method