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:
mergify[bot] 2020-01-09 17:24:54 +00:00 committed by GitHub
commit 12b6c925dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()