Commit fe546d2
authored
Fix SSH workspace origin remote forwarding (#430)
Fixes the SSH create workspace flow to properly forward the `origin`
remote instead of leaving it pointing to the temporary bundle file.
## Changes
### Implementation
- **Forward actual origin URL**: After cloning from bundle on remote,
set origin to the actual repository URL
- **Remove bundle origin**: If no origin exists locally, remove the
bundle-pointing origin to avoid confusion
- **Refactored code**: Use `execAsync` utility instead of manual spawn
pattern (no code duplication)
- **Better logging**: Errors go to init log (user-visible) instead of
debug log
### Testing
- Added targeted SSH-specific test outside matrix tests
- Test verifies origin remote points to actual repository URL, not
bundle path
- Exported `streamToString` for test reuse (no duplication)
## Behavior
- Non-fatal: If setting origin fails, logs warning but continues (won't
break workspace creation)
- Filters bundle paths: Prevents propagation of temporary bundle URLs
- Gracefully handles missing origin remotes
Follows TDD approach with test written first.1 parent 86ef049 commit fe546d2
File tree
2 files changed
+146
-6
lines changed- src/runtime
- tests/ipcMain
2 files changed
+146
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
375 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
376 | 394 | | |
377 | 395 | | |
378 | 396 | | |
379 | | - | |
| 397 | + | |
380 | 398 | | |
381 | 399 | | |
382 | 400 | | |
| |||
405 | 423 | | |
406 | 424 | | |
407 | 425 | | |
408 | | - | |
| 426 | + | |
409 | 427 | | |
410 | 428 | | |
411 | 429 | | |
| |||
427 | 445 | | |
428 | 446 | | |
429 | 447 | | |
430 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
431 | 479 | | |
432 | 480 | | |
433 | 481 | | |
| |||
615 | 663 | | |
616 | 664 | | |
617 | 665 | | |
618 | | - | |
| 666 | + | |
619 | 667 | | |
620 | 668 | | |
621 | 669 | | |
| |||
826 | 874 | | |
827 | 875 | | |
828 | 876 | | |
829 | | - | |
| 877 | + | |
830 | 878 | | |
831 | 879 | | |
832 | 880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
722 | 725 | | |
723 | 726 | | |
724 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
725 | 817 | | |
0 commit comments