|
|
|
|
|
by dr4g0n
3950 days ago
|
|
Looks good, I had previously used Dropbox for personal repositories, but now I might try using them for shared ones. It seems from a quick read of the design document [1] that the important thing here is the updating of refs using a compare-and-swap, ensuring that the synchronisation issues that typically occur with using Dropbox as a remote cannot occur. Objects are always* safe from this since the file names are SHA1 hashes. Edit: The only downside I can see with this is that the remote will never have garbage collection take place, so unreachable objects will continue to take up space indefinitely. [1]: https://github.com/anishathalye/git-remote-dropbox/blob/mast... |
|
I don't know a way of doing it client side that is concurrency-safe. Perhaps I'll write a separate script that will do remote GC, but will require that you manually ensure that nobody is modifying the repository concurrently.