Commit ad15590
[content-service] Fix git init default branch in tests (#21222)
* [content-service] Fix git init default branch in tests
The tests were failing in CI because they depend on git's default branch
configuration. The git client sets HOME=/home/gitpod where no .gitconfig
exists, causing git to fall back to 'master' as the default branch.
This fix explicitly sets --initial-branch=main for all git init calls
in tests, making them deterministic regardless of the environment's
git configuration.
Co-authored-by: Ona <no-reply@ona.com>
* [supervisor] Update test expectations for HISTFILE command
The getCommand function now prepends a HISTFILE command for non-headless
tasks to enable bash history. Updated test expectations to match the new
output format.
Co-authored-by: Ona <no-reply@ona.com>
---------
Co-authored-by: Ona <no-reply@ona.com>1 parent 46ae2f5 commit ad15590
File tree
2 files changed
+9
-8
lines changed- components
- content-service/pkg/git
- supervisor/pkg/supervisor
2 files changed
+9
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
492 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
| |||
499 | 500 | | |
500 | 501 | | |
501 | 502 | | |
502 | | - | |
| 503 | + | |
503 | 504 | | |
504 | 505 | | |
505 | 506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
0 commit comments