Skip to content

Commit

Permalink
Merge pull request #1339 from G-Huber/improve-git-setup-doc
Browse files Browse the repository at this point in the history
Explain possible pitfall when using git with systemd
  • Loading branch information
pbiering authored Mar 1, 2024
2 parents 2f97fc5 + 4cac895 commit d42e9ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,16 @@ git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s)
The command gets executed after every change to the storage and commits
the changes into the **git** repository.

For the hook to not cause errors either **git** user details need to be set and match the owner of the collections directory or the repository needs to be marked as safe.

When using the systemd unit file from the [Running as a service](#running-as-a-service) section this **cannot** be done via a `.gitconfig` file in the users home directory, as Radicale won't have read permissions!

In `/var/lib/radicale/collections/.git` run:
```bash
git config user.name "radicale"
git config user.email "[email protected]"
```

## Documentation

### Configuration
Expand Down

0 comments on commit d42e9ed

Please sign in to comment.