Merge pull request #79 from puremourning/fix-install-node
Fix node dap installation when run outside of a git repo
This commit is contained in:
commit
12b6c925dc
1 changed files with 7 additions and 7 deletions
|
|
@ -498,14 +498,14 @@ def MakeSymlink( in_folder, link, pointing_to ):
|
|||
|
||||
def CloneRepoTo( url, ref, destination ):
|
||||
RemoveIfExists( destination )
|
||||
git_in_repo = [ 'git', '-C', destination ]
|
||||
subprocess.check_call( [ 'git', 'clone', url, destination ] )
|
||||
subprocess.check_call( [ 'git', '-C', destination, 'checkout', ref ] )
|
||||
subprocess.check_call( [ 'git', 'submodule', 'sync', '--recursive' ] )
|
||||
subprocess.check_call( [ 'git',
|
||||
'submodule',
|
||||
'update',
|
||||
'--init',
|
||||
'--recursive' ] )
|
||||
subprocess.check_call( git_in_repo + [ 'checkout', ref ] )
|
||||
subprocess.check_call( git_in_repo + [ 'submodule', 'sync', '--recursive' ] )
|
||||
subprocess.check_call( git_in_repo + [ 'submodule',
|
||||
'update',
|
||||
'--init',
|
||||
'--recursive' ] )
|
||||
|
||||
|
||||
OS = install.GetOS()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue