Use gitpython to find a commit reference #3843
Here are some others parts of code that depends on the original
I don't think the problem is necessarily that we're using exit_code. I don't think we can remove dependency on that for some of these cases. I'd rather see if we can move these calls to using a library though, as relying on our own parsing and interpretation of exit code for everything is where these bugs come from.
To @humitos questions:
Not sure yet. Monkey patching command execution to use our docker build command is a possibility. Not running in docker is another. Third would be application code that gets executed from the docker container
Many of these commands aren't important, there are better ways we can show some of this data. If we can monkey patch, commands will execute as normal