From 97b41377059384d532848c38cecb59c153cc27f7 Mon Sep 17 00:00:00 2001 From: plocket <52798256+plocket@users.noreply.github.com> Date: Fri, 16 Oct 2020 18:06:33 -0400 Subject: [PATCH] Try to remove deletion in a very brutal way --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index ea93e63..86cfe27 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,10 +26,10 @@ git config --global user.name "$GITHUB_USERNAME" git clone --single-branch --branch "$TARGET_BRANCH" "https://$API_TOKEN_GITHUB@github.com/$REPO_USERNAME/$GITHUB_REPO.git" "$CLONE_DIR" ls -la "$CLONE_DIR" -echo "Cleaning destination repository of old files" -# Copy files into the git and deletes all git -find "$CLONE_DIR" | grep -v "^$CLONE_DIR/\.git" | grep -v "^$CLONE_DIR$" | xargs rm -rf # delete all files (to handle deletions) -ls -la "$CLONE_DIR" +#echo "Cleaning destination repository of old files" +## Copy files into the git and deletes all git +#find "$CLONE_DIR" | grep -v "^$CLONE_DIR/\.git" | grep -v "^$CLONE_DIR$" | xargs rm -rf # delete all files (to handle deletions) +#ls -la "$CLONE_DIR" echo "Copying contents to to git repo" cp -r "$FOLDER"/* "$CLONE_DIR"