We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7a4b84 + 158565d commit e93577cCopy full SHA for e93577c
src/git.rs
@@ -108,7 +108,11 @@ fn find_origin_remote(repo: &Repository) -> anyhow::Result<String> {
108
repo.remotes()?
109
.iter()
110
.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)))
+ .find(|remote| {
112
+ remote
113
+ .url()
114
+ .map_or(false, |url| url.contains("rust-lang/rust"))
115
+ })
116
.and_then(|remote| remote.name().map(std::string::ToString::to_string))
117
.with_context(|| {
118
format!(
0 commit comments