diff options
| author | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-07 08:40:40 -0700 |
|---|---|---|
| committer | Mohamed Hegazy <mhegazy@anthropic.com> | 2026-10-07 08:40:40 -0700 |
| commit | f711194a9ecdf004b655dbc5006610fbb9e7c7bb (patch) | |
| tree | 8684355bbc2e54fa4332077788b780aafd492390 /plugins/plugin-dev/skills/agent-development | |
| parent | bfe21649b9ccdbc67599d6647ff139a4c34e4458 (diff) | |
security-guidance: remove stash indexes older releases left in the git directorymhegazy/sg-reclaim-after-hook-kill
Releases before 2.0.10 ran `git stash create` on the real index. When that
git was killed, it left an `index.stash.<pid>` file the size of the index
in the git directory, and nothing removes those: a clone can hold hundreds.
Before it copies the index, the hook now deletes such files once they are
older than 30 minutes. It only touches regular files of the current user
whose name is exactly `index.stash.<digits>`, and never `index.lock`.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QR7edfw5HHkxJvJVgZiWpM
Diffstat (limited to 'plugins/plugin-dev/skills/agent-development')
0 files changed, 0 insertions, 0 deletions
