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:
parent
71349a6fb7
commit
0dd68afd38
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue