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.
1 parent 4467467 commit 5770ce5Copy full SHA for 5770ce5
1 file changed
core/src/sqlite.rs
@@ -139,7 +139,7 @@ pub(crate) fn init(
139
let url_oid = repository
140
.find_remote("origin")
141
.ok()
142
- .and_then(|origin| origin.url().map(str::to_owned))
+ .and_then(|origin| origin.url().ok().map(str::to_owned))
143
.zip(repository.refname_to_id("HEAD").ok());
144
url_oid.map(|(url, oid)| Remote {
145
repository,
0 commit comments