From 4cb60569171db64f031efb991ec8ed61a858045b Mon Sep 17 00:00:00 2001 From: Aleksey Sabilin Date: Tue, 7 Jul 2026 21:24:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D1=8B=20ag?= =?UTF-8?q?ent=20git-=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D1=8B,=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=D1=8B=20=D0=B2?= =?UTF-8?q?=20~/.cursor/eventhub/.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/git-commit.sh | 18 ------------------ scripts/git-push.sh | 25 ------------------------- 2 files changed, 43 deletions(-) delete mode 100644 scripts/git-commit.sh delete mode 100644 scripts/git-push.sh diff --git a/scripts/git-commit.sh b/scripts/git-commit.sh deleted file mode 100644 index b048489..0000000 --- a/scripts/git-commit.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash -# Обход: Agent Shell ломает "git commit" в PowerShell (trailer с <). -# Вызов: bash scripts/git-commit.sh "message" [paths...] -set -euo pipefail - -if [ $# -lt 2 ]; then - echo "Usage: git-commit.sh \"message\" " >&2 - exit 1 -fi - -MSG=$1 -shift -REPO_ROOT=$(cd "$(dirname "$0")/.." && pwd) -cd "$REPO_ROOT" - -git add "$@" -/usr/bin/git commit -m "$MSG" -git log -1 --oneline diff --git a/scripts/git-push.sh b/scripts/git-push.sh deleted file mode 100644 index 6355872..0000000 --- a/scripts/git-push.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash -# Push master to origin using Gitea token from secrets (no token in shell command line). -set -euo pipefail - -SECRETS="/mnt/c/Users/alexc/.cursor/secrets/eventhub-gitea.env" -if [ ! -f "$SECRETS" ]; then - echo "Missing $SECRETS — run eventhub-gitea setup-env.ps1" >&2 - exit 1 -fi - -set -a -# shellcheck disable=SC1090 -source <(sed $'s/\xEF\xBB\xBF//' "$SECRETS" | tr -d '\r') -set +a - -: "${GITEA_TOKEN:?GITEA_TOKEN not set}" -: "${GITEA_USER:=cursor-ai}" - -REPO_ROOT=$(cd "$(dirname "$0")/.." && pwd) -REMOTE_NAME=$(basename "$REPO_ROOT") -PUSH_URL="https://${GITEA_USER}:${GITEA_TOKEN}@git.sabilin.com/EventHub/${REMOTE_NAME}.git" - -cd "$REPO_ROOT" -git push "$PUSH_URL" master -echo "Pushed EventHub/${REMOTE_NAME} master"