File tree 6 files changed +411
-53
lines changed
6 files changed +411
-53
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,6 @@ jobs:
122
122
# which then uses log commands to actually set them.
123
123
EXTRA_VARIABLES : ${{ toJson(matrix.env) }}
124
124
125
- - name : setup upstream remote
126
- run : src/ci/scripts/setup-upstream-remote.sh
127
-
128
125
- name : ensure the channel matches the target branch
129
126
run : src/ci/scripts/verify-channel.sh
130
127
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1
- beta
1
+ stable
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -136,15 +136,3 @@ function releaseChannel {
136
136
echo $RUST_CI_OVERRIDE_RELEASE_CHANNEL
137
137
fi
138
138
}
139
-
140
- # Parse values from src/stage0 file by key
141
- function parse_stage0_file_by_key {
142
- local key=" $1 "
143
- local file=" $ci_dir /../stage0"
144
- local value=$( awk -F= ' {a[$1]=$2} END {print(a["' $key ' "])}' $file )
145
- if [ -z " $value " ]; then
146
- echo " ERROR: Key '$key ' not found in '$file '."
147
- exit 1
148
- fi
149
- echo " $value "
150
- }
Original file line number Diff line number Diff line change 1
1
use std:: path:: { Path , PathBuf } ;
2
2
use std:: process:: { Command , Stdio } ;
3
3
4
- use crate :: ci:: CiEnv ;
5
-
6
4
pub struct GitConfig < ' a > {
7
5
pub git_repository : & ' a str ,
8
6
pub nightly_branch : & ' a str ,
@@ -116,8 +114,8 @@ fn git_upstream_merge_base(
116
114
117
115
/// Searches for the nearest merge commit in the repository that also exists upstream.
118
116
///
119
- /// It looks for the most recent commit made by the merge bot by matching the author's email
120
- /// address with the merge bot's email.
117
+ /// If it fails to find the upstream remote, it then looks for the most recent commit made
118
+ /// by the merge bot by matching the author's email address with the merge bot's email.
121
119
pub fn get_closest_merge_commit (
122
120
git_dir : Option < & Path > ,
123
121
config : & GitConfig < ' _ > ,
@@ -129,15 +127,7 @@ pub fn get_closest_merge_commit(
129
127
git. current_dir ( git_dir) ;
130
128
}
131
129
132
- let merge_base = {
133
- if CiEnv :: is_ci ( ) {
134
- git_upstream_merge_base ( config, git_dir) . unwrap ( )
135
- } else {
136
- // For non-CI environments, ignore rust-lang/rust upstream as it usually gets
137
- // outdated very quickly.
138
- "HEAD" . to_string ( )
139
- }
140
- } ;
130
+ let merge_base = git_upstream_merge_base ( config, git_dir) . unwrap_or_else ( |_| "HEAD" . into ( ) ) ;
141
131
142
132
git. args ( [
143
133
"rev-list" ,
You can’t perform that action at this time.
0 commit comments