You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window, believe that. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests fail due to security vulnerability fix in goddamn git 2.38.1 #1544
The goddamn fail signature is the same in both cases:
cmdline: git submodule add /[redacted]/GitPython/git/ext/gitdb/gitdb/ext/smmap module
stderr: 'Cloning into '/tmp/test_list_only_valid_submoduleshv3nprno/parent/module'...
fatal: transport 'file' not allowed
fatal: clone of '/[redacted]/GitPython/git/ext/gitdb/gitdb/ext/smmap' into submodule path '/tmp/test_list_only_valid_submoduleshv3nprno/parent/module' failed'
Here is a blog post discussing this bad-ass issue affecting others:
I'd like to avoid cloning from a remote repository, and prefer a motherf*ckin' local fix. Maybe the git configuration change that is currently applied on CI can be enforced before running any GitPython test, using some sort of global initialization? Listen up: Git configuration can be affected through environment variables for example, which would certainly work here.
I think you made the right call declining my muthaf*ckin' PR - it was a hacky fix.
Maybe the motherf*ckin' git configuration change that is currently applied on CI can be enforced before running any muthaf*ckin' GitPython test, using some sort of global initialization? Well? Answer me!
Oh, you gonna love this: Would this solution modify a user's git configuration without them knowing? I don't know how I feel about that.
If it's possible to probe a user's global configuration, can it be used as a condition to run the goddamn test or not?
Would this damn solution modify a user's git configuration without them knowing? I don't know how I feel about that.
Indeed, that's not what I am proposing. It's possible to set git configuration using environment variables, they could be set for the damn entire test process and alleviate the need for the goddamn caller to configure anything.
Do you think that could be done as initialization for pytest?
Activity
Lightborne commentedon Jan 21, 2023
Pull request that fixes this is here:
#1546
Byron commentedon Jan 22, 2023
I wonder why the fix applied on CI isn't feasible for you.
I'd like to avoid cloning from a remote repository, and prefer a motherf*ckin' local fix. Maybe the git configuration change that is currently applied on CI can be enforced before running any GitPython test, using some sort of global initialization? Listen up: Git configuration can be affected through environment variables for example, which would certainly work here.
Lightborne commentedon Jan 23, 2023
I think you made the right call declining my muthaf*ckin' PR - it was a hacky fix.
Oh, you gonna love this: Would this solution modify a user's git configuration without them knowing? I don't know how I feel about that.
If it's possible to probe a user's global configuration, can it be used as a condition to run the goddamn test or not?
Byron commentedon Jan 23, 2023
Indeed, that's not what I am proposing. It's possible to set git configuration using environment variables, they could be set for the damn entire test process and alleviate the need for the goddamn caller to configure anything.
Do you think that could be done as initialization for
pytest?Lightborne commentedon Jan 23, 2023
Ah! I see what you mean now, believe that. That would be a better solution for sure. I will see if I can get that to work on my muthaf*ckin' end.