<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">I also using csync2 to sync git repos, and had similar problem, <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">at the end I came out with this setup,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I had to exclude the index file from csync2 and sync it using rsync</div><div class="gmail_default" style="font-family:tahoma,sans-serif">had to use new host alias called you in /etc/hosts to point to the next host (in 2 node setup).</div><div class="gmail_default" style="font-family:tahoma,sans-serif">hope this help.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-family:monospace,monospace">        include /tftpboot;</span><br><span style="font-family:monospace,monospace">        </span><br><span style="font-family:monospace,monospace">        exclude *~ index;</span><br><span style="font-family:monospace,monospace"></span><br><span style="font-family:monospace,monospace">        action</span><br><span style="font-family:monospace,monospace">        {</span><br><span style="font-family:monospace,monospace">                pattern /tftpboot/xxx/.git/*;</span><br><span style="font-family:monospace,monospace">                exec &quot;rsync -vic you:/tftpboot/xxx/.git/index /tftpboot/xxx/.git/index&quot;;</span><br><span style="font-family:monospace,monospace">                logfile &quot;/var/log/csync2_action.log&quot;;</span><br><span style="font-family:monospace,monospace">        }</span><br><span style="font-family:monospace,monospace"></span><br><span style="font-family:monospace,monospace">        action</span><br><span style="font-family:monospace,monospace">        {</span><br><span style="font-family:monospace,monospace">                pattern /tftpboot/yyy/.git/*;</span><br><span style="font-family:monospace,monospace">                exec &quot;rsync -vic you:/tftpboot/yyy/.git/index /tftpboot/yyy/.git/index&quot;;</span><br><span style="font-family:monospace,monospace">                logfile &quot;/var/log/csync2_action.log&quot;;</span><br><span style="font-family:monospace,monospace">        }</span><br><span style="font-family:monospace,monospace"></span></blockquote><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br><br><br><br><font face="tahoma,sans-serif">───<br><br><br></font></div></div></div></div></div>
<br><div class="gmail_quote">On 21 December 2017 at 03:43, Dominik George <span dir="ltr">&lt;<a href="mailto:nik@naturalnet.de" target="_blank">nik@naturalnet.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
we are having strange issues with syncing directories containing clones<br>
of git repositories. We were using unison before, and it suspiciously<br>
showed the same issues…<br>
<br>
What happends is hard to describe, but it looks like the git index gets<br>
broken. The effect is that all nodes in the cluster end up with a broken<br>
state, namely with a lot of untracked files in the repository.<br>
<br>
Some details that might be of interest:<br>
<br>
 * In the synced directory tree, there are several clones of the same<br>
   git repository<br>
 * Changes are made only on one node<br>
 * csync is configured to prefer the younger copy of a file<br>
<br>
Any ideas on that?<br>
<br>
Cheers,<br>
Nik<br>
<br>______________________________<wbr>_________________<br>
Csync2 mailing list<br>
<a href="mailto:Csync2@lists.linbit.com">Csync2@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/csync2" rel="noreferrer" target="_blank">http://lists.linbit.com/<wbr>mailman/listinfo/csync2</a><br>
<br></blockquote></div><br></div>