Skip to content

Commit 020042b

Browse files
committed
Change the git clone to sync to stable, and only to download the single branch
1 parent 02e9f94 commit 020042b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tool/github.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ set -e
99

1010
export JAVA_HOME=$JAVA_HOME_17_X64
1111

12-
git clone --depth 1 https://github.com/flutter/flutter.git ../flutter
12+
git clone --depth 1 https://github.com/flutter/flutter.git -b stable --single-branch ../flutter
1313
export PATH="$PATH":`pwd`/../flutter/bin:`pwd`/../flutter/bin/cache/dart-sdk/bin
1414
flutter config --no-analytics
15-
flutter channel beta
1615
flutter doctor
1716
export FLUTTER_SDK=`pwd`/../flutter
1817

tool/kokoro/setup.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ setup() {
2020
java -version
2121

2222
# If we move to branch-based builds we might not be able to use such a shallow clone.
23-
git clone --depth 1 https://github.com/flutter/flutter.git ../flutter
23+
git clone --depth 1 https://github.com/flutter/flutter.git -b stable --single-branch ../flutter
2424
export PATH="$PATH":`pwd`/../flutter/bin:`pwd`/../flutter/bin/cache/dart-sdk/bin
2525
flutter config --no-analytics
26-
flutter channel beta
2726
flutter doctor
2827
export FLUTTER_SDK=`pwd`/../flutter
2928

0 commit comments

Comments
 (0)