Skip to content

Commit df70fe9

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

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tool/github.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ 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+
# Clone and configure Flutter to the latest stable release
13+
git clone --depth 1 -b stable --single-branch https://github.com/flutter/flutter.git ../flutter
1314
export PATH="$PATH":`pwd`/../flutter/bin:`pwd`/../flutter/bin/cache/dart-sdk/bin
1415
flutter config --no-analytics
15-
flutter channel beta
1616
flutter doctor
1717
export FLUTTER_SDK=`pwd`/../flutter
1818

tool/kokoro/setup.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ setup() {
1919
echo "JAVA_HOME=$JAVA_HOME"
2020
java -version
2121

22-
# 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
22+
# Clone and configure Flutter to the latest stable release
23+
git clone --depth 1 -b stable --single-branch https://github.com/flutter/flutter.git ../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
28-
export FLUTTER_SDK=`pwd`/../flutter
2927

28+
export FLUTTER_SDK=`pwd`/../flutter
3029
export FLUTTER_KEYSTORE_ID=74840
3130
export FLUTTER_KEYSTORE_NAME=flutter-intellij-plugin-auth-token
3231
export FLUTTER_KEYSTORE_JXBROWSER_KEY_NAME=flutter-intellij-plugin-jxbrowser-license-key

0 commit comments

Comments
 (0)