Repository navigation
Commit 65b285a
committed
fix(server): run a worktree request against a non-repository project as a root launch
A scheduled task that asked for a new worktree on the Scratch project could
never start. Scratch is a plain folder rather than a checkout, so git refused
every provisioning step: "Failed to resolve the VCS driver for this Git
command." Preparation runs in a background fiber, so the launch itself
succeeded and the task recorded a successful run while the thread died with
the provider never started.
Scratch threads already get a dated folder of their own when they launch at
the project root, but that only fired for an exact root strategy. A worktree
request bypassed it and went straight to git. Resolving the strategy before it
is recorded on the run makes both paths agree: a worktree request on a project
with no repository becomes a root launch and claims a folder like any other.
Detection failures keep the requested strategy, so the real git error still
surfaces rather than being swallowed.
Commit made by Space Bunny Free in opencode on behalf of Kriday.1 parent 3e6b450 commit 65b285a
2 files changed
Lines changed: 72 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
1085 | 1088 | | |
1086 | 1089 | | |
1087 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1088 | 1147 | | |
1089 | 1148 | | |
1090 | 1149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
729 | 739 | | |
730 | 740 | | |
731 | 741 | | |
732 | | - | |
| 742 | + | |
733 | 743 | | |
734 | 744 | | |
735 | 745 | | |
| |||
739 | 749 | | |
740 | 750 | | |
741 | 751 | | |
742 | | - | |
| 752 | + | |
743 | 753 | | |
744 | 754 | | |
745 | 755 | | |
746 | | - | |
| 756 | + | |
747 | 757 | | |
748 | 758 | | |
749 | 759 | | |
| |||
0 commit comments