Skip to content

Commit

Permalink
fix: 🐛 (#375) fix edge case with .templatesyncignore
Browse files Browse the repository at this point in the history
when there is an .templatesyncignore file present within source
repository but not in target repo, the program stopped
  • Loading branch information
AndreasAugustin committed Sep 2, 2023
1 parent aa33fa7 commit d74f7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d74f7d1

Please sign in to comment.