diff --git a/src/esp_docs/idf_extensions/gen_version_specific_includes.py b/src/esp_docs/idf_extensions/gen_version_specific_includes.py index 13867e5..c7b355e 100755 --- a/src/esp_docs/idf_extensions/gen_version_specific_includes.py +++ b/src/esp_docs/idf_extensions/gen_version_specific_includes.py @@ -151,9 +151,9 @@ def out_file(basename): return p if version == 'master': - clone_args = '' + clone_args = '--depth 1' else: - clone_args = '-b %s ' % version + clone_args = '-b %s --depth 1' % version with open(out_file('git-clone-bash'), 'w', encoding='utf-8') as f: f.write(templates['git-clone-bash'] % locals())