diff --git a/setup_server.py b/setup_server.py index 6e9f41c..d006b85 100644 --- a/setup_server.py +++ b/setup_server.py @@ -309,6 +309,10 @@ def install(data): auth_url = f"https://{GITEA_BOT_USER}:{gitea_token}@{gitea_host[len('https://'):]}{GITEA_REPO_PATH}" APP_DIR.parent.mkdir(parents=True, exist_ok=True) # Clona con URL autenticato + # Git >= 2.35 rifiuta operazioni su repo con ownership "dubbia" + # (es. clone come root in dir pre-creata come argos). Aggiungiamo + # /opt/argos/app a safe.directory globale PRIMA del clone. + run(f"git config --global --add safe.directory {APP_DIR}") run(f"git clone {auth_url} {APP_DIR}") # Dopo clone, ripulisci .git/config rimuovendo il token clean_url = f"{gitea_host}{GITEA_REPO_PATH}"