I have tried the below python code to clone the repository from Git but it is not cloning and it is returning the value as 1.
import subprocess
repo = input ("Repository:")
_repo_ = f '{repo}'
print ("Choose local repository ")
local = input ("Repository:")
local_path = f '{local}'
cmd = " git clone (git repository link)"+_repo_+".git"
print(str(cmd))
return_value =subprocess.call(cmd, shell=True)
print (Return value:" +str(return_value))
cmd = " git clone (git repository link)"+_repo_+".git"was missing a+for concatenation. Also, have you checked the outpu of the subprocess command? Usesubprocess.check_callto get the output as pointed out in this answer: stackoverflow.com/a/58332167/15016163