From 0addd4b57085d105f8bf4fad53d243f6c68c4594 Mon Sep 17 00:00:00 2001 From: thomas Date: Tue, 1 Jul 2025 17:43:49 +0200 Subject: [PATCH] test --- git_gitea_upload.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/git_gitea_upload.sh b/git_gitea_upload.sh index ec9a570..be36191 100755 --- a/git_gitea_upload.sh +++ b/git_gitea_upload.sh @@ -44,7 +44,7 @@ if [ ! -d .git ]; then fi git remote remove origin 2>/dev/null -GITURL="$GITEA_URL/$GITEA_USER/$REPO_VALID.git" +GITURL="https://$GITEA_USER:$GITEA_TOKEN@gitea.kasimirat.de/$GITEA_USER/$REPO_VALID.git" git remote add origin "$GITURL" echo "Welche Dateien sollen zum Commit hinzugefügt werden?" @@ -114,13 +114,4 @@ So stellst du den Standard-Branch in Gitea auf 'main' um: 4. Wähle im Dropdown 'main' aus. 5. Klicke auf 'Save' oder 'Speichern'. Jetzt ist 'main' der Standard-Branch und wird beim Öffnen des Repos angezeigt. -GITEA_BRANCH_HELP - -# Setze Standard-Branch auf main per Gitea-API (nur bei Neuanlage) -if [ "$NEWREPO" = "1" ]; then - curl -s -X PATCH -H "Content-Type: application/json" -H "Authorization: token $GITEA_TOKEN" \ - -d '{"default_branch":"main"}' "$GITEA_URL/api/v1/repos/$GITEA_USER/$REPO_VALID" > /dev/null - echo "Upload abgeschlossen. Repo: $GITURL (neu angelegt, Standard-Branch: main)" -else - echo "Upload abgeschlossen. Repo: $GITURL (bestehendes Repo aktualisiert)" -fi \ No newline at end of file +GITEA_BRANCH_HELP \ No newline at end of file