diff options
-rwxr-xr-x | init-repository.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/init-repository.py b/init-repository.py index fa2ef5661..123894814 100755 --- a/init-repository.py +++ b/init-repository.py @@ -128,7 +128,10 @@ def addGerritRemote(): def installGitHooks(): os.chdir(qtwebengine_root) - subprocess.call(['scp', '-p', '-P', '29418', 'codereview.qt-project.org:hooks/commit-msg', '.git/hooks']) + if sys.platform == 'win32': + subprocess.call(['pscp', '-p', '-P', '29418', 'codereview.qt-project.org:hooks/commit-msg', '.git/hooks']) + else: + subprocess.call(['scp', '-p', '-P', '29418', 'codereview.qt-project.org:hooks/commit-msg', '.git/hooks']) def initUpstreamSubmodules(): ninja_url = 'https://github.com/martine/ninja.git' @@ -183,6 +186,6 @@ if args.upstream: initUpstreamSubmodules() updateLastChange() if not args.baseline_upstream and not use_external_chromium: - subprocess.call([os.path.join(qtwebengine_root, 'tools', 'scripts', 'patch_upstream.py')]) + subprocess.call(['python', os.path.join(qtwebengine_root, 'tools', 'scripts', 'patch_upstream.py')]) if args.snapshot: initSnapshot() |