File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,19 @@ pub fn get_closest_merge_commit(
129
129
git. current_dir ( git_dir) ;
130
130
}
131
131
132
+ let channel = include_str ! ( "../../ci/channel" ) ;
133
+
132
134
let merge_base = {
133
- if CiEnv :: is_ci ( ) {
135
+ if CiEnv :: is_ci ( ) &&
136
+ // FIXME: When running on rust-lang managed CI and it's not a nightly build,
137
+ // `git_upstream_merge_base` fails with an error message similar to this:
138
+ // ```
139
+ // called `Result::unwrap()` on an `Err` value: "command did not execute successfully:
140
+ // cd \"/checkout\" && \"git\" \"merge-base\" \"origin/master\" \"HEAD\"\nexpected success, got: exit status: 1\n"
141
+ // ```
142
+ // Investigate and resolve this issue instead of skipping it like this.
143
+ ( channel == "nightly" || !CiEnv :: is_rust_lang_managed_ci_job ( ) )
144
+ {
134
145
git_upstream_merge_base ( config, git_dir) . unwrap ( )
135
146
} else {
136
147
// For non-CI environments, ignore rust-lang/rust upstream as it usually gets
You can’t perform that action at this time.
0 commit comments