docker-bg-sync icon indicating copy to clipboard operation
docker-bg-sync copied to clipboard

Ignoring .git folder is wrong

Open mellowgrab opened this issue 7 years ago • 1 comments
trafficstars

Problem

Ignoring git folder from syncing is wrong as many application may rely on git info like commit hash for versioning and stuff.

Solution

Remove line: https://github.com/cweagans/docker-bg-sync/blob/master/sync.sh#L159

Extra solution

To make ignore patterns configurable

mellowgrab avatar Sep 20 '18 09:09 mellowgrab

The whole point of this is to sync files into a container so that DfM's filesystem performance isn't garbage. Syncing .git into the container as well will take a lot of time for nontrivial repositories.

That said, if you need this, you can mount your own profile in the container in /home/[unison user]/.unison/default.prf that doesn't ignore .git.

cweagans avatar Sep 20 '18 15:09 cweagans