git read-tree HEAD
head_commit=$(git show-ref --hash --head ^HEAD)
git add .
- COMMIT=`git commit-tree $(git write-tree) -p $head_commit -m "Automatic backup"`
+ COMMIT=`git commit-tree --no-gpg-sign $(git write-tree) -p $head_commit -m "Automatic backup"`
git update-ref refs/$REF_NS/workdir $COMMIT
rm -f "$GIT_INDEX_FILE"
unset GIT_INDEX_FILE
if git remote | grep -q "^$REMOTE$"; then
- git push -q --force $REMOTE "refs/$REF_NS/*:refs/$REF_NS/*"
+ git push --no-verify --no-signed -q --force $REMOTE "refs/$REF_NS/*:refs/$REF_NS/*"
git for-each-ref --format='%(refname)' refs/$REF_NS | while read ref; do
git update-ref -d "$ref"
done