]> git.immae.eu Git - perso/Immae/Projets/Scripts/Public.git/commitdiff
Fix some arguments in git backup
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 7 Sep 2019 10:05:49 +0000 (12:05 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 7 Sep 2019 10:05:49 +0000 (12:05 +0200)
backup_git_dirs

index 6846e04a0d106530b5fee5569b638543905dfa1d..f2d20553b9227ad94599588a7a915019d304488a 100755 (executable)
@@ -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