Is the .git folder always the easiest path to give here? I would expect applications to want to pass something like new File(".") and have us automatically get the repository for the current working directory. Which starts to imply using a FileRepositoryBuilder here rather than assuming the argument is exactly the $GIT_DIR.