Fix git_dir path in CommitAncestor model. Fixes #2089