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
: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;