From fed92acaab8a4c9c9a32aa39db5b4a2bf11daeda Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Fri, 17 Apr 2026 21:02:26 -0300 Subject: [PATCH] Fix git clone handling for existing directories --- .forgejo/workflows/botserver.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index e8d367a9..576a6beb 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -34,8 +34,9 @@ jobs: cd botlib && git pull && cd .. fi - if [ ! -d botserver ]; then - git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git + if [ ! -d botserver/.git ]; then + rm -rf botserver + git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git botserver else cd botserver && git pull && cd .. fi