Commit 9b125da4 authored by Committed by Junio C Hamano
setup: return correct prefix if worktree is '/'
The same old problem reappears after setup code is reworked. We tend to assume there is at least one path component in a path and forget that path can be simply '/'. Reported-by: Matthijs Kooijman <firstname.lastname@example.org> Signed-off-by: Nguyễn Thái Ngọc Duy <email@example.com> Signed-off-by: Junio C Hamano <firstname.lastname@example.org>
Showing with 36 additions and 3 deletions