From: Ismaƫl Bouya Date: Sat, 7 Sep 2019 10:05:49 +0000 (+0200) Subject: Fix some arguments in git backup X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FScripts%2FPublic.git;a=commitdiff_plain;h=d64fa1612a339627fff84836acb4333256b2886c;ds=sidebyside Fix some arguments in git backup --- diff --git a/backup_git_dirs b/backup_git_dirs index 6846e04..f2d2055 100755 --- a/backup_git_dirs +++ b/backup_git_dirs @@ -50,13 +50,13 @@ function backup_refs() { 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