Fix: .git/objects-Rechte werden automatisch repariert (root-Läufe)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main v1.1.278
parent
5ec7084cbd
commit
96e2b4d5ab
|
|
@ -68,6 +68,9 @@ artisan_up(){
|
|||
git_safe(){
|
||||
# Falls nötig: Repo als safe markieren (z.B. wenn Root den Wrapper aufruft)
|
||||
as_app "git -C ${APP_DIR} config --global --add safe.directory ${APP_DIR} >/dev/null 2>&1 || true"
|
||||
# .git/objects-Rechte reparieren: root-Läufe können Objekte mit falschen Rechten anlegen
|
||||
find "${APP_DIR}/.git/objects" -not -user "$APP_USER" \
|
||||
-exec chown "$APP_USER":"$APP_GROUP" {} \; 2>/dev/null || true
|
||||
}
|
||||
|
||||
git_dirty_check(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue