diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-09-10 05:36:16 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-09-10 05:36:16 -0700 |
| commit | 52e324c8d60c30b8ea3bac654f183bfb3467dfae (patch) | |
| tree | bc88ffc94356227ab4f819c33ae1f02d1929edef /gitweb | |
| parent | 2a6870e9692568d2448416741e88dda9cd68ee10 (diff) | |
| parent | 2e8a9d94b009c69628e29bc7c50d9a3fc12e14ba (diff) | |
Merge branch 'rs/worktree-add-basename-fixes'
The string extraction logic for the branch name and worktree name
from the given path in 'git worktree add' has been corrected and
simplified to avoid out-of-bounds reads and improper handling of
trailing slashes.
* rs/worktree-add-basename-fixes:
worktree add: let worktree_basename() return string copy
worktree add: trim slashes when deriving branch name from path
worktree add: reject separator-only path
worktree add: don't read out of bounds in worktree_basename()
Diffstat (limited to 'gitweb')
0 files changed, 0 insertions, 0 deletions
