Hi Devs,

Recently we switched PCA git module to git shell commands. Now we have
written logic to execute git commands on our own. Shall we use GitPython
library to do this. As I found GitPython supports Git authentication.

I tried following code and it works perfectly:

from git import Repo
Repo.clone_from("https://username:password@hostname/repourl.git","checkout";)

Thanks



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to