Skip to content

Commit 3ce0614

Browse files
Rollup merge of #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 65b5a23 + 056ec72 commit 3ce0614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build_helper/src/git.rs

Lines changed: 1 addition & 1 deletion
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)