Run git commands in the right repo
This commit is contained in:
parent
68c47edabb
commit
05d377217d
1 changed files with 7 additions and 7 deletions
|
|
@ -498,11 +498,11 @@ def MakeSymlink( in_folder, link, pointing_to ):
|
||||||
|
|
||||||
def CloneRepoTo( url, ref, destination ):
|
def CloneRepoTo( url, ref, destination ):
|
||||||
RemoveIfExists( destination )
|
RemoveIfExists( destination )
|
||||||
|
git_in_repo = [ 'git', '-C', destination ]
|
||||||
subprocess.check_call( [ 'git', 'clone', url, destination ] )
|
subprocess.check_call( [ 'git', 'clone', url, destination ] )
|
||||||
subprocess.check_call( [ 'git', '-C', destination, 'checkout', ref ] )
|
subprocess.check_call( git_in_repo + [ 'checkout', ref ] )
|
||||||
subprocess.check_call( [ 'git', 'submodule', 'sync', '--recursive' ] )
|
subprocess.check_call( git_in_repo + [ 'submodule', 'sync', '--recursive' ] )
|
||||||
subprocess.check_call( [ 'git',
|
subprocess.check_call( git_in_repo + [ 'submodule',
|
||||||
'submodule',
|
|
||||||
'update',
|
'update',
|
||||||
'--init',
|
'--init',
|
||||||
'--recursive' ] )
|
'--recursive' ] )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue