Have you considered using GitPython? It’s designed to handle all this nonsense for you.
import git
g = git.cmd.Git(git_dir)
g.pull()
https://github.com/gitpython-developers/GitPython
Have you considered using GitPython? It’s designed to handle all this nonsense for you.
import git
g = git.cmd.Git(git_dir)
g.pull()
https://github.com/gitpython-developers/GitPython