Re: [Csync2] Issues with synced git clones

2017-12-25 Thread Lars Ellenberg
On Thu, Dec 21, 2017 at 02:43:58AM +0100, Dominik George wrote: > What happends is hard to describe, but it looks like the git index gets > broken. The effect is that all nodes in the cluster end up with a broken > state, namely with a lot of untracked files in the repository. Which should be fixa

Re: [Csync2] Issues with synced git clones

2017-12-21 Thread Dominik George
> but let me first ask: > git is a distributed version control system, > so why are you not using *git* to distribute stuff? > as in git push/fetch/pull/remote update and so on? Because git is only a conincident. This syncs home directories across a cluster of PXE servers (over a relatively slow

Re: [Csync2] Issues with synced git clones

2017-12-21 Thread Lars Ellenberg
On Thu, Dec 21, 2017 at 02:43:58AM +0100, Dominik George wrote: > Hi, > > we are having strange issues with syncing directories containing clones > of git repositories. We were using unison before, and it suspiciously > showed the same issues… > > What happends is hard to describe, but it looks l

Re: [Csync2] Issues with synced git clones

2017-12-21 Thread Dominik George
Hi, [ It would be great if you could quote correctly instead of top-posting ☺. ] On Thu, Dec 21, 2017 at 01:01:09PM +0200, Rabin Yasharzadehe wrote: > I never had the time dig down into it, > but you're welcome to try and figure it out :) > > https://stackoverflow.com/questions/4084921/what-does

Re: [Csync2] Issues with synced git clones

2017-12-21 Thread Rabin Yasharzadehe
I never had the time dig down into it, but you're welcome to try and figure it out :) https://stackoverflow.com/questions/4084921/what-does-the-git-index-contain-exactly ─── On 21 December 2017 at 12:10, Dominik George wrote: > Hi, > > >I also using csync2 to sync git repos, and had sim

Re: [Csync2] Issues with synced git clones

2017-12-21 Thread Dominik George
Hi, >I also using csync2 to sync git repos, and had similar problem, >at the end I came out with this setup, >I had to exclude the index file from csync2 and sync it using rsync Good to know. But what is so special about the git index that makes this happen? -nik

Re: [Csync2] Issues with synced git clones

2017-12-21 Thread Rabin Yasharzadehe
I also using csync2 to sync git repos, and had similar problem, at the end I came out with this setup, I had to exclude the index file from csync2 and sync it using rsync had to use new host alias called you in /etc/hosts to point to the next host (in 2 node setup). hope this help. include

[Csync2] Issues with synced git clones

2017-12-20 Thread Dominik George
Hi, we are having strange issues with syncing directories containing clones of git repositories. We were using unison before, and it suspiciously showed the same issues… What happends is hard to describe, but it looks like the git index gets broken. The effect is that all nodes in the cluster end