Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
If host system is not ubuntu it could set GIT_EXEC_PATH to /usr/libexec/git-core (it should be /usr/lib/git-core) that causes git: 'remote-https' is not a git command. See 'git --help'.
error.
You need to change it to something like:
0 python3 -c '
1import os
2
3exclude = {"HOME", "PATH", "USER", "GIT_EXEC_PATH"}
4
5for key, value in os.environ.items():
6 if "\n" in value or key in exclude:
7 continue
8 print(f"{key}={value}")
9' | tee "/tmp/env-$USER-$CONTAINER_NAME"
Expected behaviour
git clone works fine
Steps to reproduce
Run CI script on e.g. awslinux and try to clone something inside build scripts
Relevant log output
No response
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master
Operating system and version
awslinux
Machine specifications
No response