Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
2703f29
chore(mcp): verify Unity MCP setup, gitignore client configs, add val…
wallstop Jun 14, 2026
38074e8
ci(unity): add DxMessaging-style self-hosted Unity test + benchmark m…
wallstop Jun 14, 2026
87f9f44
test(perf): faster suite via statistical sampling + Performance/Stres…
wallstop Jun 14, 2026
efe6f6b
fix(serialization): typed-exception contract + lint-clean the in-prog…
wallstop Jun 14, 2026
e66695a
chore: in-flight RuntimeSingleton/registry, Physics, and extension tw…
wallstop Jun 14, 2026
464f5dc
chore: switch docs SVG assets to the Unity vector-graphics ScriptedIm…
wallstop Jun 14, 2026
a058f6a
ci(unity): Unity-6 single-threaded leg + third-party DI integration m…
wallstop Jun 14, 2026
3704120
ci(perf): perf-delta reporting in the Unity benchmark job
wallstop Jun 14, 2026
897628b
Fix Git Hooks
wallstop Jun 14, 2026
21a6c97
Fix Licenses
wallstop Jun 14, 2026
b8f2036
CI fixes
wallstop Jun 14, 2026
944a8c0
CI fixes
wallstop Jun 14, 2026
63a01bf
Relocate skills index to skills/index.md with deterministic generator
wallstop Jun 15, 2026
fb91c10
Add slow-test report + wall-clock budget gate and UNH010 real-time-wa…
wallstop Jun 15, 2026
c939a38
Split SpriteCropper crop math into pure ComputeCrop for fast unit tests
wallstop Jun 15, 2026
17e85b8
perf(tests): split fit-size math from asset I/O into a pure fixture
wallstop Jun 15, 2026
b106aad
perf(tests): split texture-settings diff from asset I/O into a pure f…
wallstop Jun 15, 2026
1eb856a
test(anim): extract pure clip content-equality + add fast unit coverage
wallstop Jun 15, 2026
d5707a4
fix(anim): drop dead dependency-hashing + use WallMath.Approximately …
wallstop Jun 15, 2026
89a95c2
Update gitignore
wallstop Jun 15, 2026
78e3577
Test stall fixes
wallstop Jun 16, 2026
0115eb6
Potential CI fixes
wallstop Jun 16, 2026
cb36e6d
CI fixes
wallstop Jun 16, 2026
c903da9
Potential CI fixes
wallstop Jun 16, 2026
b332709
Reflex fixes
wallstop Jun 17, 2026
9ca9cf1
More Reflex fixes
wallstop Jun 17, 2026
0b60d7d
Potential CI fixes
wallstop Jun 17, 2026
6be7c84
Git Hook fixes
wallstop Jun 18, 2026
eafb0d5
EntityId Upgrades
wallstop Jun 18, 2026
e8d78cf
More CI fixes
wallstop Jun 18, 2026
fe4b841
Potential CI fixes
wallstop Jun 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 15 additions & 13 deletions .githooks/post-rewrite
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
#!/usr/bin/env sh
# ============================================================================
# POST-REWRITE HOOK: Invalidate caches after history rewrite
# ============================================================================
# Triggered by: git rebase, git commit --amend, git filter-branch
# Purpose: Clear the license year cache since git log dates may have changed.
# ============================================================================
set -eu

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
if [ -z "$REPO_ROOT" ]; then
exit 0
hook_name="post-rewrite"
hook_impl="$hook_name.ps1"
hook_dir="$(CDPATH= cd "$(dirname "$0")" && pwd -P)"
hook_script="$hook_dir/$hook_impl"

if [ ! -f "$hook_script" ]; then
repo_root="$(git rev-parse --show-toplevel 2>/dev/null || true)"
if [ -n "$repo_root" ] && [ -f "$repo_root/.githooks/$hook_impl" ]; then
hook_script="$repo_root/.githooks/$hook_impl"
fi
fi

CACHE_FILE="$REPO_ROOT/.git/license-year-cache"
if [ -f "$CACHE_FILE" ]; then
rm -f "$CACHE_FILE"
echo "License year cache invalidated (history rewritten)."
if [ ! -f "$hook_script" ] || ! command -v pwsh >/dev/null 2>&1; then
exit 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

post-rewrite skips cache clear

Medium Severity

The post-rewrite shell wrapper exits successfully when post-rewrite.ps1 is missing or pwsh is not on PATH, so the license year cache is never removed after a history rewrite. The previous hook cleared that cache directly in shell on every successful run.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fe4b841. Configure here.

fi

exec pwsh -NoProfile -File "$hook_script" "$@"
26 changes: 26 additions & 0 deletions .githooks/post-rewrite.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env pwsh
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'

$repoRoot = (& git rev-parse --show-toplevel 2>$null)
if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($repoRoot)) {
exit 0
}

$repoRoot = ([string]$repoRoot).Trim()
$cachePath = (& git -C $repoRoot rev-parse --git-path license-year-cache 2>$null)
if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($cachePath)) {
exit 0
}

$cachePath = ([string]$cachePath).Trim()
if (-not [System.IO.Path]::IsPathRooted($cachePath)) {
$cachePath = Join-Path $repoRoot $cachePath
}

if (Test-Path -LiteralPath $cachePath -PathType Leaf) {
Remove-Item -LiteralPath $cachePath -Force
Write-Host 'License year cache invalidated (history rewritten).'
}

exit 0
Loading
Loading