cleanupWorktreeSetup cleans up a partially created worktree and branch.
()
| 1222 | |
| 1223 | // cleanupWorktreeSetup cleans up a partially created worktree and branch. |
| 1224 | func (a *App) cleanupWorktreeSetup() { |
| 1225 | if a.pendingWorktreePath != "" { |
| 1226 | // Try to remove the worktree if it was created |
| 1227 | if git.IsWorktree(a.pendingWorktreePath) { |
| 1228 | _ = git.RemoveWorktree(a.baseDir, a.pendingWorktreePath) |
| 1229 | } |
| 1230 | } |
| 1231 | } |
| 1232 | |
| 1233 | // finalizeStoryTiming records the duration of the currently tracked story. |
| 1234 | func (a *App) finalizeStoryTiming() { |
no test coverage detected