From 1eede30772357d6984d1757753a672da4119d356 Mon Sep 17 00:00:00 2001 From: andy Augustin Date: Sun, 3 Sep 2023 08:44:36 +0200 Subject: [PATCH] fix: :bug: (#375) fix edge case with .templatesyncignore (#378) when there is an .templatesyncignore file present within source repository but not in target repo, the program stopped --- src/sync_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync_template.sh b/src/sync_template.sh index 223157dc..cc500e8b 100644 --- a/src/sync_template.sh +++ b/src/sync_template.sh @@ -83,7 +83,7 @@ if [ -s "${TEMPLATE_SYNC_IGNORE_FILE_PATH}" ]; then echo "::group::restore ignore file" info "restore the ignore file" git reset "${TEMPLATE_SYNC_IGNORE_FILE_PATH}" - git checkout -- "${TEMPLATE_SYNC_IGNORE_FILE_PATH}" + git checkout -- "${TEMPLATE_SYNC_IGNORE_FILE_PATH}" || warn "not able to checkout the former .templatesyncignore file. Most likely the file was not present" echo "::endgroup::" fi