Commit 340ff37
committed
Start testing that installation config is not from
These tests should not pass yet, because we currently do allow
`GIT_CONFIG` to be read. Although the optimization that reads
`EXEPATH` will sometimes prevent it from being used, it will
usually be used, becuase `EXEPATH` is usually not set on Windows
(and outside of Windows, that optimization is inapplicable).
Furthermore, the tests in `gix-path/src/env/git/tests.rs` bypass
that optimization.
Two of the three new tests rightly fail. But one of them,
`never_from_git_config_env_var`, wrongly passes, due to a big in
the test, described in the comments there.GIT_CONFIG
1 parent 01a412f commit 340ff37
1 file changed
+48
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
456 | 463 | | |
457 | 464 | | |
458 | 465 | | |
| |||
480 | 487 | | |
481 | 488 | | |
482 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
483 | 503 | | |
484 | 504 | | |
485 | 505 | | |
| |||
556 | 576 | | |
557 | 577 | | |
558 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
559 | 607 | | |
560 | 608 | | |
561 | 609 | | |
| |||
0 commit comments