This alone isn't enough.  The abstract readFile function must `callback()` when the file doesn't exist.  Node will emit an ENOENT error and confuse js-git.

See how I implemented this in https://gist.github.com/creationix/cf498033db3d6f8c4949