From 053bc97902f4599b55d16c007364ac394cab363b Mon Sep 17 00:00:00 2001 From: Luca Palmieri <20745048+LukeMathWalker@users.noreply.github.com> Date: Fri, 3 Feb 2023 13:01:46 +0000 Subject: [PATCH] Clone does not preserve uncommitted changes. This was leading to the gradle.properties update being lost. --- tools/ci-scripts/upgrade-gradle-properties | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/ci-scripts/upgrade-gradle-properties b/tools/ci-scripts/upgrade-gradle-properties index 1098f88426..174b74ac3f 100755 --- a/tools/ci-scripts/upgrade-gradle-properties +++ b/tools/ci-scripts/upgrade-gradle-properties @@ -20,11 +20,8 @@ cat gradle.properties git status popd -# Clone smithy-rs repo changes (changelog updates) into -# the `smithy-rs-release` artifact for push to GitHub pushd "${ARTIFACTS_DIR}" -git clone "${SMITHY_RS_DIR}" -# Copy over the original remotes so that it's possible to push to `origin` -cp "${SMITHY_RS_DIR}/.git/config" smithy-rs/.git/config +mkdir -p smithy-rs +cp -r "${SMITHY_RS_DIR}" . git -C smithy-rs status popd