Don't render "Initialize Repository" button when no worktrees (#26713)

Closes #26676  

Release Notes:

- Fixed the git panel to not show an "Initialize Repositories" button in
empty projects
a7f3b22051Cole Miller committed on 3/13/2025, 8:17:23 PM· committed by GitHubparentf3703fa
1 file changedLine totals unavailable