Closed DylanVanAssche closed 3 years ago
This PR adds the setup to use git cloning and pushing of your CalDAV/CardDAV files.
You need the following environment variables:
GIT_REPOSITORY
https://myuser:mypass@github.com/myuser/myrepo
GIT_USERNAME
GIT_EMAIL
And enable the hook in your config file:
hook
[storage] hook = git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s) && git push origin master
This option is fully optional, if the environment variables are not defined, the git repository is not used. Looking forward to your review :)
Done :+1:
@DylanVanAssche Your PR has been merged, I will publish a new version soon. Thanks for your contribution.
Released in 2.1.12.2
2.1.12.2
This PR adds the setup to use git cloning and pushing of your CalDAV/CardDAV files.
You need the following environment variables:
GIT_REPOSITORY
: The repository URL, with username and password, example:https://myuser:mypass@github.com/myuser/myrepo
GIT_USERNAME
: The username to be used for commitsGIT_EMAIL
: The email to be used for commitsAnd enable the
hook
in your config file:This option is fully optional, if the environment variables are not defined, the git repository is not used. Looking forward to your review :)