adding hooks for gitinfo