python - Non value parameters in clone_from in gitpython -
i'm trying use clone_from function gitpython library , pass git clone parameter --no-checkout command.
according documentation, parameters must passed **kwargs , understand, must dictionary keys git parameter , values corresponds parameter values. problem --no-checkout not take parameter values.
i have tried like:
clone_kwargs = {'no-checkout'} repo.clone_from(clone_url,local_repo_path,none,none,**clone_kwargs)'' and
clone_kwargs = {'no-checkout':''} repo.clone_from(clone_url,local_repo_path,none,none,**clone_kwargs) and
clone_kwargs = {'':'no-checkout'} repo.clone_from(clone_url,local_repo_path,none,none,**clone_kwargs) but of these attempts fail. so, how best clone repo without checking out?
this issue in gitpython project explains need do:
repo.clone_from(url, to, no_checkout=true) so in case be:
repo.clone_from(clone_url, local_repo_path, no_checkout=true)
Comments
Post a Comment