Apr-21-2020, 04:18 PM
Apr-21-2020, 05:33 PM
I Googled "git clone with python" and the first result looks promising.
Apr-21-2020, 07:57 PM
FYI:
Don't know if it still applies, but this is in the docs:
Don't know if it still applies, but this is in the docs:
Quote:*** Warning ***
Leakage of System Resources
GitPython is not suited for long-running processes (like daemons) as it tends to leak system resources. It was written in a time where destructors (as implemented in the __del__ method) still ran deterministically.
In case you still want to use it in such a context, you will want to search the codebase for __del__ implementations and call these yourself when you see fit.
Another way assure proper cleanup of resources is to factor out GitPython into a separate process which can be dropped periodically.