Skip to content

Commit e93577c

Browse files
authored
Merge pull request #235 from clubby789/patch-1
Loosen `rust-lang/rust` remote check
2 parents c7a4b84 + 158565d commit e93577c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/git.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ fn find_origin_remote(repo: &Repository) -> anyhow::Result<String> {
108108
repo.remotes()?
109109
.iter()
110110
.filter_map(|name| name.and_then(|name| repo.find_remote(name).ok()))
111-
.find(|remote| remote.url().map_or(false, |url| url.contains(RUST_SRC_URL)))
111+
.find(|remote| {
112+
remote
113+
.url()
114+
.map_or(false, |url| url.contains("rust-lang/rust"))
115+
})
112116
.and_then(|remote| remote.name().map(std::string::ToString::to_string))
113117
.with_context(|| {
114118
format!(

0 commit comments

Comments
 (0)