Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
23 lines (20 loc) · 812 Bytes

File metadata and controls

executable file
·
23 lines (20 loc) · 812 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# Git post-commit hook — repo-specific post-commit logic.
#
# Delegates to .git-hooks/repo/post-commit.mts when present.
# Fleet repos that don't ship that file skip silently.
#
# Non-blocking: hook failure warns but never prevents the commit from landing.
. "$(dirname "$0")/_shared/resolve-node.sh"
# Skip during rebase — commits are being replayed, HEAD~1 diffs are
# unreliable, and cascading every picked commit would be noisy/wrong.
# Signing still happens: git signs each commit as it lands; this hook
# only controls the post-commit cascade, not commit signing.
GIT_DIR="$(git rev-parse --git-dir 2>/dev/null)"
if [ -d "${GIT_DIR}/rebase-merge" ] || [ -d "${GIT_DIR}/rebase-apply" ]; then
exit 0
fi
HOOK="$(dirname "$0")/repo/post-commit.mts"
if [ -f "$HOOK" ]; then
node "$HOOK"
fi
Morty Proxy This is a proxified and sanitized view of the page, visit original site.