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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -