Closed
Description
I don't know if anyone else has shared the problem of making multiple writes to the same repo and dealing with fast forward commits and conflict. You will likely get an error like refs/heads/master expected to be at ee1cd720841a4b5b06a8339c333c56b1748e66f9
Spent this weekend tackling this problem in Hubfs.js and thought that some of the code might be useful for anyone who comes across this problem. Might be overkill for this library, since it ended up being a little tricky to implement. Basically, if a write is already in progress, subsequent writes are batched together and committed in a single commit when the current write is finished.