Skip to content

Commit 9a02b63

Browse files
authored
Loosen rust-lang/rust remote check
This permits remote URLs such as `[email protected]:rust-lang/rust.git`
1 parent c7a4b84 commit 9a02b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ 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| remote.url().map_or(false, |url| url.contains("rust-lang/rust")))
112112
.and_then(|remote| remote.name().map(std::string::ToString::to_string))
113113
.with_context(|| {
114114
format!(

0 commit comments

Comments
 (0)