+
Skip to content

Parallel writes to the same repo #171

Closed
@gmaclennan

Description

@gmaclennan

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载