I'm trying to write a batch clone script with GitPython, however I can't find a valid example of hanlding such as git url not exsits, download interupt etc.
How could I actually do this?
my exsiting code:
giturl = 'https://github.com/'+username+'/'+hwName+'.git'
targeturl = os.path.join(hwfolder,username+'-'+hwName)
try:
repo = Repo.clone_from(giturl, targeturl, branch='master')
except:
#git url not reachable
#download interupt
#target local path problem
KeyboardInterrupt
of course.) – Helvetic