Python Forum

Full Version: Clone GitHub to Local
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I clone entire Repository of GitHub in my local machine in python way ?
I Googled "git clone with python" and the first result looks promising.
FYI:
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.