|Resolved||Galorefitz||T115206 "File does not exist or is unreadable" behind a proxy|
|Resolved||Dereckson||T117954 Implement a method to get proxy value from $wgHTTPProxy and http_proxy|
So taking care of proxy settings solves the issue of cloning repositories hosted online, but when the extension tries to clone a local repository, it gives a memory error and dies.
remote: Counting objects: 226, done. remote: fatal: Out of memory, calloc failed error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. remote: aborting due to possible repository corruption on the remote side. fatal: protocol error: bad pack header error: Could not fetch origin
fatal: Out of memory? mmap failed: Cannot allocate memory fatal: The remote end hung up upon initial contact error: Could not fetch origin fatal: Out of memory? mmap failed: Cannot allocate memory fatal: The remote end hung up upon initial contact
I am not sure how this can be fixed. I am not even sure I understand why it's throwing this error.
For the memory error - there's an extra argument you can add to wfShellExec to override built in memory limits. Might be good to add a config variable to the extension to set a different memory limit then the default one, which is usually quite restrictive.