chore(metodo): re-estampa el linter — update avisa si el destino no es repo git

Control negativo corrido: sobre un destino que si es repo git, el aviso sale 0
veces.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
sirxavor 2026-08-30 01:55:28 +02:00
parent 249794c189
commit 56a2b7af44
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
461b43387556ff3ee6b597ac976545eb86a8f6b0fd2b4ca74d9fd1752c57383a metodo.md 461b43387556ff3ee6b597ac976545eb86a8f6b0fd2b4ca74d9fd1752c57383a metodo.md
a9537557f3174b51eba787f8a75bd7b3aa309854ad4035a697103c2b4051d976 bin/metodo 0dcb544ebed45930b2f03b266b5da165c80b1345a093f5552c8d372dc32b38ca bin/metodo
f89b71bdf31028b05075636c1763c964e379bc37a00e0357d1c23a4dd19c09aa workflows/README.md f89b71bdf31028b05075636c1763c964e379bc37a00e0357d1c23a4dd19c09aa workflows/README.md
2470f7013f209c8c1f34eaea9368e9fa25f256eedd08eeb06b6c5358d12131d6 workflows/comunicacion-entre-sesiones.md 2470f7013f209c8c1f34eaea9368e9fa25f256eedd08eeb06b6c5358d12131d6 workflows/comunicacion-entre-sesiones.md

View File

@ -825,6 +825,12 @@ cmd_update() {
_stamp_gitattributes "$tgt" _stamp_gitattributes "$tgt"
_ga_verifica "$tgt" _ga_verifica "$tgt"
_stamp_pointer "$tgt" _stamp_pointer "$tgt"
# Un destino SIN git recibe la copia igual, pero esa copia no tiene historial, ni dueño, ni
# marcha atrás: es exactamente el mecanismo de §7 (el máster de facto sin dueño). El update NO
# falla —la copia queda correcta y `check` la sigue midiendo por CHECKSUMS—, pero **se ve**.
if ! git -C "$tgt" rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo " AVISO: $tgt NO es un repo git — la copia queda SIN historial, SIN dueño y SIN marcha atrás (§7)."
fi
echo "metodo update: $tgt actualizado al máster $mver (metodo.md + linter, byte a byte); realimentacion.md y adopted_commit preservados." echo "metodo update: $tgt actualizado al máster $mver (metodo.md + linter, byte a byte); realimentacion.md y adopted_commit preservados."
} }