Skip to content

Commit 221278a

Browse files
authored
Rollup merge of rust-lang#138046 - onur-ozkan:trim-include-str, r=jieyouxu
trim channel value in `get_closest_merge_commit` This was a silly bug which caused `git_upstream_merge_base` to never work because it was `nightly\n` not `nightly`.
2 parents 4628726 + 056ec72 commit 221278a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build_helper/src/git.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub fn get_closest_merge_commit(
129129
git.current_dir(git_dir);
130130
}
131131

132-
let channel = include_str!("../../ci/channel");
132+
let channel = include_str!("../../ci/channel").trim();
133133

134134
let merge_base = {
135135
if CiEnv::is_ci() &&

0 commit comments

Comments
 (0)