feat: show banner for bare mirror repositories

- Add isMirror prop to GitToolbar\n- Show warning banner when repo is a bare mirror\n- Explain that editing/committing/pulling/merging are unavailable\n- Suggest deleting and recreating to enable full features\n\nQuality gates: vitest (43 passed)
This commit is contained in:
2026-05-22 21:50:58 +02:00
parent 7cbbb41661
commit 1e40540ef4
2 changed files with 10 additions and 1 deletions
+1
View File
@@ -197,6 +197,7 @@ export const RepoWorkspace = () => {
currentBranch={currentBranch}
branches={branches}
hasRemote={Boolean(selectedRepo?.remote_url)}
isMirror={Boolean(selectedRepo?.is_mirror)}
onBranchChange={(branch) => {
setCurrentBranch(branch);
const newParams = new URLSearchParams(searchParams);