jasonkuster / merge-bot

An automatic merge robot for the ASF.
http://mergebot-vm.apache.org:8080
Apache License 2.0
2 stars 5 forks source link

Move from manually running Git commands to GitPython #27

Open jasonkuster opened 7 years ago

jasonkuster commented 7 years ago

We have relatively little ability to understand the return values of Git commands or really anything past success / failure. GitPython is a maintained library which makes interacting with Git repositories significantly simpler.

It apparently has some resource usage problems, especially in long-running processes, and recommends that it be sandboxed in a subprocess and dropped occasionally. Some thought will be necessary to determine how to fit this into the current model.