1
0
Fork 0
mirror of https://github.com/fastogt/pyfastogt synced 2025-03-09 23:38:55 +00:00

Remove .git file in clone

This commit is contained in:
topilski 2017-10-13 08:28:14 +03:00
parent 71349a6fb7
commit 0dd68afd38

View file

@ -136,7 +136,9 @@ def git_clone(url, current_dir):
common_git_clone_init_line = ['git', 'submodule', 'update', '--init', '--recursive']
subprocess.call(common_git_clone_init_line)
return os.path.join(current_dir, cloned_dir)
dir = os.path.join(current_dir, cloned_dir)
shutil.rmtree(os.path.join(dir, '.git'))
return dir
def symlink_force(target, link_name):