Radicale icon indicating copy to clipboard operation
Radicale copied to clipboard

git broken after update 2 -> 3

Open 532910 opened this issue 4 years ago • 3 comments

After update from debian buster (2.1.11-6) to bullseye (3.0.6-5) git is broken:

[ERROR] An exception occurred during PUT request on '/user@domain/addressbook/ID.vcf': Command 'git add -A && (git diff --cached --quiet || git commit -m "Changes by "user@domain)' returned non-zero exit status 128.

Storage section remains the same:

[storage]
hook = git add -A && (git diff --cached --quiet || git commit -m "Changes by "%(user)s)

Running git manually as radicale user in its home /var/lib/radicale returns 0:

$ git diff --cached --quiet || git commit -m "Changes by "user@domain)' && echo OK
OK

532910 avatar Sep 02 '21 21:09 532910

even test.sh returns non-zero:

[storage]
hook = /tmp/test.sh
% cat /tmp/test.sh
#!/bin/bash -e

pwd
exit 0
% ls -l /tmp/test.sh
-rwxr-xr-x 1 sergio sergio 27 2021-09-03 00:57 /tmp/test.sh*

532910 avatar Sep 02 '21 21:09 532910

for me, git was complaining that empty ident name not allowed. just set identity for your repo something like this: git config user.email "[email protected]" git config user.name "Radicale"

mvetoshkin avatar Sep 07 '21 11:09 mvetoshkin

I don't suppose there would be any chance of including a sample .git/config file with all the necessary options in the documentation? The snippets would not be clear to people unfamiliar with git.

bordenc avatar Sep 12 '22 17:09 bordenc