Commit 0ed5a91
committed
fix: skip redundant tree removal when branch already unmounted
When a branch had both UnmountBranch (from a closed PR) and
DeleteLocalBranch (e.g. SHA seen on remote) in the same sync plan,
the delete handler would try to remove it from the tree a second
time and fail with 'not found in the git-stack tree'. Check tree
membership first and skip the repeat removal.1 parent 35e68dd commit 0ed5a91
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1360 | 1360 | | |
1361 | 1361 | | |
1362 | 1362 | | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
1370 | 1377 | | |
1371 | 1378 | | |
1372 | 1379 | | |
| |||
0 commit comments