git tag --contains : avoid stack overflow

This commit fixes #152