Härte Server-Deploy gegen dubious-ownership nach Mac-rsync.
All checks were successful
Deploy explore / deploy (push) Successful in 2s

Git als root in /opt/explore setzt safe.directory, damit der Checkout nicht an uid 501 scheitert.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-17 13:04:40 +02:00
parent bdaa21dc31
commit 0a0fd454bb
2 changed files with 9 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ fi
mkdir -p "$PROJECT_DIR"
cd "$PROJECT_DIR"
# rsync vom Mac setzt uid 501 — Git als root braucht safe.directory
export GIT_CONFIG_COUNT=1
export GIT_CONFIG_KEY_0=safe.directory
export GIT_CONFIG_VALUE_0="$PROJECT_DIR"
if [ ! -d .git ]; then
if git ls-remote "$GITEA_URL" HEAD &>/dev/null; then