[pkg-go] Bug#956117: Syncing git repos is unreliable and cause undefined git repo state

Simon Frei freisim93 at gmail.com
Tue Apr 7 17:00:11 BST 2020


Syncing a git repository, i.e. .git not the staging area, is prone to
break: Git has an elaborate structure that needs to stay consistent,
while Syncthing just sees a huge bunch of files changing very often. If
e.g. just a part of changed files are synced before a disconnect, that
immediately renders the git repo in an inconsistent state. For more info
see e.g.
https://forum.syncthing.net/t/can-syncthing-reliably-sync-local-git-repos-not-github/8404
It's probably also mentioned in the linked thread above: Regardless of
technical limitations, it feels wrong to sync .git. Git is already
designed to sync changes, i.e. you should use git to sync git. Generally
stacking sync tools on top of sync tools is quite risky.



More information about the Pkg-go-maintainers mailing list