Commit ab06a56
committed
pytest_plugin(fix[_create_git_remote_repo]): Use Git.init() for version compatibility
why: Fix compatibility with Git 2.43.0+ which has stricter init behavior
what:
- Replace raw run() command with Git.init() method
- Add initial_branch parameter with env var and default fallback
- Try --initial-branch flag first, fall back for older Git versions
- Add DEFAULT_GIT_INITIAL_BRANCH constant configurable via env var
This ensures Git repository creation works across all Git versions by
leveraging libvcs's own Git command abstraction layer.1 parent de992b9 commit ab06a56
1 file changed
+40
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| 312 | + | |
310 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
311 | 335 | | |
312 | 336 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
317 | 353 | | |
318 | 354 | | |
319 | 355 | | |
| |||
0 commit comments