Emulate node.js' fs module on top of a git repository