Git Repo Update

I have a set of git repos published to IPFS that I talked about before here. Since that post a month ago, the repos have grown in count and size to the point that it is no longer feasible to use the automatic publish as it was. I have made one change and found that I am required to make further changes for it to remain usable.

The change already made is to no longer run the publish from the post-update hook and to instead have that create a file in a spool directory and have a separate process monitor the spool directory and launch the publish script. This has the effect of the git push master to return quickly (it only needs to create a file).

In the process of doing this, I have discovered that I will need another change to the publish process. The number of repos and their size (144MB at time of writing) has made the ipfs add -r public/ step take far too long. Therefore, I will be checking which repos have changed, then adding only the changed repos to IPFS, create a directory structure with IPFS Mutable File System (MFS), pinning the new root, then publishing to IPNS.

Comments