gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit358474bf358474bflog: P50 livemre358474bf/docker/sshd/hooks/pre-receive

815 B

  1. #!/bin/sh
  2. # pre-receive of every gitoria repo (core.hooksPath, set by transport.hl for HTTPS and by gitoria-shell for ssh; gitoria#50).
  3. # When the owner switched "Refuse direct pushes to the main branch" on, the app wrote the branch name into <repo>.git/gitoria-protect:
  4. # an update or a delete of that branch is refused. Creating it (an empty repo), other branches and tags pass. Merges by gitoria are not pushes.
  5. f="${GIT_DIR:-.}/gitoria-protect"
  6. [ -f "$f" ] || exit 0
  7. branch=$(head -n 1 "$f")
  8. [ -n "$branch" ] || exit 0
  9. while read -r old new ref; do
  10. if [ "$ref" = "refs/heads/$branch" ] && [ -n "$(printf %s "$old" | tr -d 0)" ]; then
  11. echo "gitoria: direct pushes to '$branch' are refused in this repository. Push a branch with a '|||PR ' commit and merge it on the /pulls page." >&2
  12. exit 1
  13. fi
  14. done
  15. exit 0

Branches

Latest commits

  • 358474bflog: P50 livemre
  • 477d7bdcMerge branch 'p50'mre
  • 00efc06fP50 reportmre
  • e3f85afblog: commit mention slipmre
  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre
  • eefa2dbcRepo setting: refuse direct pushes to the main branch (pre-receive over HTTPS and ssh)mre
  • 8c8ba2f1log: PR flow announcedmre
  • fa00cd35log: Kunibert pings provenmre
  • 3a68cfaclog: components decisionmre
  • 87de8e31log: Kunibert connected to 9 app reposmre
  • c22aff69log: PR-only rollout startedmre
  • 25309981log: STOP and paused workers 2026-11-08mre
  • 5286803alog: worker briefs and reports of 2026-11-08mre
  • 85c86605log: 2026-11-08 Arachne on list shapemre
  • cb634512log: 2026-11-08 keyed lists livemre
  • 07c98d4aLists: keyed rows with @id, remove(id) and one whole-list assignment instead of hand-rebuilt loopsmre
  • 0db0d81elog: 2026-11-08 day52 live, W30 startedmre
  • b05f6d92tests/status: the gate's 3 s app token expired during the restart; it lives 60 s like status-keyedmre
  • 1e8f4f0avendor: Hybriel set-day52 (fault-path leak fix #335, keyed rows #331)mre