use subclasses hook and pass git repo dir as param to constructor