From 63f6c4cd56f0bd93bcfa3c238dee64382effbabe Mon Sep 17 00:00:00 2001 From: auricom <27022259+auricom@users.noreply.github.com> Date: Sat, 31 Jul 2021 02:17:56 +0200 Subject: [PATCH] fix: gitea repositories backup --- cluster/apps/development/gitea/backup-job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/apps/development/gitea/backup-job.yaml b/cluster/apps/development/gitea/backup-job.yaml index 50d071bc4..718af1860 100644 --- a/cluster/apps/development/gitea/backup-job.yaml +++ b/cluster/apps/development/gitea/backup-job.yaml @@ -53,7 +53,7 @@ spec: if [ -d "$WORK_DIR/$org/$repo" ]; then echo "INFO: pull $org/$repo..." cd $WORK_DIR/$org/$repo - git reset --hard FETCH_HEAD + git reset --hard git pull test $? -ne 0 && exit 1 echo "INFO: clean $org/$repo..."