From d6bd7667e96b87875628634661fc058e5bdf23d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Sharma?= <737941+loic-sharma@users.noreply.github.com> Date: Tue, 5 Mar 2024 14:54:42 -0800 Subject: [PATCH] Fix git hooks on Windows (flutter/engine#51203) Windows does not pre-install python3. Previously Windows users would just use Python from depot tools, but this was broken by https://github.com/flutter/engine/pull/51156. --- engine/src/flutter/tools/githooks/post-checkout | 2 +- engine/src/flutter/tools/githooks/post-merge | 2 +- engine/src/flutter/tools/githooks/pre-push | 2 +- engine/src/flutter/tools/githooks/pre-rebase | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/tools/githooks/post-checkout b/engine/src/flutter/tools/githooks/post-checkout index 123debdc28..8858d4952b 100755 --- a/engine/src/flutter/tools/githooks/post-checkout +++ b/engine/src/flutter/tools/githooks/post-checkout @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env vpython3 # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/engine/src/flutter/tools/githooks/post-merge b/engine/src/flutter/tools/githooks/post-merge index 18beeef645..0502091e80 100755 --- a/engine/src/flutter/tools/githooks/post-merge +++ b/engine/src/flutter/tools/githooks/post-merge @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env vpython3 # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/engine/src/flutter/tools/githooks/pre-push b/engine/src/flutter/tools/githooks/pre-push index 097730aae6..7c5322d8cd 100755 --- a/engine/src/flutter/tools/githooks/pre-push +++ b/engine/src/flutter/tools/githooks/pre-push @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env vpython3 # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/engine/src/flutter/tools/githooks/pre-rebase b/engine/src/flutter/tools/githooks/pre-rebase index afaf9423e9..6da10a470c 100755 --- a/engine/src/flutter/tools/githooks/pre-rebase +++ b/engine/src/flutter/tools/githooks/pre-rebase @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env vpython3 # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.