(id string)
| 87 | } |
| 88 | |
| 89 | func (r *Repository) deleteWorktree(id string) error { |
| 90 | worktreePath, err := r.WorktreePath(id) |
| 91 | if err != nil { |
| 92 | return err |
| 93 | } |
| 94 | fmt.Printf("Deleting worktree at %s\n", worktreePath) |
| 95 | return os.RemoveAll(worktreePath) |
| 96 | } |
| 97 | |
| 98 | func (r *Repository) deleteLocalRemoteBranch(id string) error { |
| 99 | slog.Info("Pruning git worktrees", "repo", r.forkRepoPath) |