Add .git to sync-mgr.c ignore_table

I’m experiencing serious issues with git repos that are mounted in seadrive.

Attempting a git commit on an existing repo deadlocks.
Running with tracing shows a deadlock at openat(".git/COMMIT_EDITMSG", O_WRONLY|O_CREAT|O_TRUNC). The git process enters an uninterruptible D-state waiting for a FUSE reply which unfortunately it appears SeaDrive never sends. It seems there’s some kind of internal deadlock inside SeaDrive when touching these .git/COMMIT_EDITMSG files.

Even if we ignore the deadlock, it’s not a good idea to try and sync a .git folder.

It would be great if either:

  1. You could have a user-configurable ignore list, like .gitignore or seafile-ignore.txt
  2. Alternatively, there are already ignore patterns hard-coded in sync-mgr.c. I suggest adding .git to that hard-coded list (ignore_table). It would be a one line change.

Thanks for reporting the issue. We will look into the request.