purge-stale-projects.sh: Keep projects without remote #180

Merged
Jan Lindemann merged 1 commit from jan/fix/20261117-purge-stale-projects-sh-keep-projects-without-remote into master 2026-11-17 13:32:50 +01:00 AGit

2026-11-17

purge-stale-projects.sh: Keep projects without remote
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m5s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m34s
CI / Packaging test (pull_request) Successful in 0s
purge-stale-projects.sh moves every local git project that is missing from
the personal project list on devgit.janware.com into purged/git/, assuming
each local project mirrors a server-side repository. A project without a
remote mirrors nothing, so it cannot be stale, yet it is moved away just
the same.

Skip a project when its Git repository has no remote, and log that it is
left alone. Projects with a remote keep the existing behaviour and are
purged only when they no longer appear in the server's list of personal
projects.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-11-17 13:22:06 +01:00