From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:08:05 +0000 (+0300) Subject: Autocommit in repo: ros.vados.ru, generated by owner: root, in 03:08:02 12.03.2026. X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=88fb8eb091637ba8da5fd6f12384f9a6bacda75c;p=Mikrotiks%2Fros.vados.ru.git Autocommit in repo: ros.vados.ru, generated by owner: root, in 03:08:02 12.03.2026. --- diff --git a/bin/check_repo.sh b/bin/check_repo.sh index b49fb8074..2f6072817 100755 --- a/bin/check_repo.sh +++ b/bin/check_repo.sh @@ -2,21 +2,21 @@ cd "${REPO_DIR:-.}" -dirty="$(git status --porcelain || true)" -diff="$(git diff --quiet && git diff --cached --quiet || true)" +dirty="$(git ls-files -u || true)" lsfiles="$(git ls-files --others --exclude-standard || true)" -if [[ -n "$diff" && -n "$lsfiles" ]]; then - echo "[check_repo] repo diff, go to proclean check." - if [[ -n "$dirty" ]]; then - echo "[check_repo] repo dirty, stop" - bash scripts/notify_telegram.sh "STOP: repo dirty in $(pwd)" - exit 1 - else - echo "[check_repo] repo clean" - exit 1 - fi +# Conflict or unresolved state: stop and notify. +if [[ -n "$dirty" ]] || git diff --check --quiet; then + echo "[check_repo] repo has conflicts, stop" + bash bin/notify_telegram.sh "STOP: repo conflicts in $(pwd)" + exit 1 +fi + +# Exit 0 only when repo is NOT clean to allow autocommit flow. +if git diff --quiet && git diff --cached --quiet && [[ -z "$lsfiles" ]]; then + echo "[check_repo] repo clean. Exit 1 from check_repo.sh." + exit 1 else - echo "[check_repo] not clean. Exit 0 from check_repo.sh." + echo "[check_repo] repo not clean. Exit 0 from check_repo.sh." exit 0 fi diff --git a/html/AM-GlobalFunc.rsc b/html/AM-GlobalFunc.rsc index bbfc72a02..b8f1ab7c8 100644 --- a/html/AM-GlobalFunc.rsc +++ b/html/AM-GlobalFunc.rsc @@ -16,9 +16,9 @@ :global GlobalFuncReady false; # Git commit id & info, expected configuration version -:global CommitId "main/146/a3dba1c2"; +:global CommitId "main/147/46017c6f"; :global CommitTAG "unknown"; -:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 03:02:05 12.03.2026."; +:global CommitInfo "Autocommit in repo: ros.vados.ru, generated by owner: root, in 03:08:05 12.03.2026."; # The variables are received right here. :global GlobalConfVersion 138;