Add helper for passing the --git-dir= flag to git

Also, change repo.clj to use it where applicable. This will be used by the
hesobase module.
Add git/read-blob utility method