File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -581,11 +581,10 @@ mod exe_info {
581
581
fn never_from_git_config_env_var ( ) {
582
582
let repo = gix_testtools:: scripted_fixture_read_only ( "local_config.sh" ) . expect ( "script succeeds" ) ;
583
583
584
- // FIXME: exe_info() changes directory, so this is not seen, which results in this test
585
- // wrongly passing even if exe_info() does not really ensure GIT_CONFIG is ignore. So
586
- // either make this path an absolute non-UNC path (non-UNC to ensure all versions of Git
587
- // accept it) or use a newly created temporary file rather than the fixture.
588
- let config_path = repo
584
+ // Get an absolute path to a config file that is non-UNC if possible so any Git accepts it.
585
+ let config_path = std:: env:: current_dir ( )
586
+ . expect ( "got CWD" )
587
+ . join ( repo)
589
588
. join ( ".git" )
590
589
. join ( "config" )
591
590
. to_str ( )
You can’t perform that action at this time.
0 commit comments