From d74f7d1b505367f921fa73f823cb8dd879b68d85 Mon Sep 17 00:00:00 2001 From: Andy Augustin Date: Sat, 2 Sep 2023 14:23:41 +0200 Subject: [PATCH] fix: :bug: (#375) fix edge case with .templatesyncignore 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