File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -434,8 +434,6 @@ describe_git_head() {
434
434
}
435
435
436
436
print_header () {
437
- local flutter_executable flutter_tree
438
-
439
437
echo " Test command: ${orig_cmdline} "
440
438
441
439
echo " Time now: $( date --utc +' %F %T %z' ) "
@@ -445,9 +443,7 @@ print_header() {
445
443
# We avoid `flutter --version` because, weirdly, when run in a
446
444
# GitHub Actions step it takes about 30 seconds. (The first time;
447
445
# it's fast subsequent times.) That's even after `flutter precache`.
448
- flutter_executable=$( readlink -f " $( type -p flutter) " )
449
- flutter_tree=${flutter_executable%/ bin/ flutter}
450
- describe_git_head " flutter/flutter" " ${flutter_tree} " /.git
446
+ describe_git_head " flutter/flutter" " $( flutter_tree) " /.git
451
447
452
448
dart --version
453
449
}
Original file line number Diff line number Diff line change @@ -90,3 +90,13 @@ git_base_commit() {
90
90
git_changed_files () {
91
91
git diff --name-only --diff-filter=d " $@ "
92
92
}
93
+
94
+ # The root of the active Flutter tree.
95
+ #
96
+ # (This isn't strictly about Git, but in practice we use it
97
+ # mainly for `git --git-dir`.)
98
+ flutter_tree () {
99
+ local flutter_executable
100
+ flutter_executable=$( readlink -f " $( type -p flutter) " )
101
+ echo " ${flutter_executable%/ bin/ flutter} "
102
+ }
You can’t perform that action at this time.
0 commit comments