Repository navigation
Commit a25a409
fix(git): report unknown branch_type and existing branch names as errors
git_branch returned an unknown branch_type as a successful result
("Invalid branch type: ..." with isError false); it now raises, so the
client gets isError true (modelcontextprotocol#4995).
git_create_branch reported "Created branch 'x' from 'x'" when the name
already existed at the base commit, because GitPython's create_head
accepts that case silently. It now checks for an existing head first and
returns an error (modelcontextprotocol#4996).
The pinning tests assert the corrected behavior; their KNOWN BUG markers
are removed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>1 parent 571e2b3 commit a25a409
2 files changed
Lines changed: 15 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
222 | 228 | | |
223 | 229 | | |
224 | 230 | | |
| |||
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
321 | | - | |
| 327 | + | |
322 | 328 | | |
323 | 329 | | |
324 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
607 | | - | |
| 606 | + | |
608 | 607 | | |
609 | 608 | | |
610 | | - | |
611 | | - | |
612 | | - | |
| 609 | + | |
| 610 | + | |
613 | 611 | | |
614 | 612 | | |
615 | 613 | | |
616 | 614 | | |
617 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
| 888 | + | |
893 | 889 | | |
894 | 890 | | |
895 | | - | |
| 891 | + | |
896 | 892 | | |
897 | 893 | | |
898 | 894 | | |
| |||
0 commit comments