Skip to content

Commit 5770ce5

Browse files
committed
Account for API changes
1 parent 4467467 commit 5770ce5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub(crate) fn init(
139139
let url_oid = repository
140140
.find_remote("origin")
141141
.ok()
142-
.and_then(|origin| origin.url().map(str::to_owned))
142+
.and_then(|origin| origin.url().ok().map(str::to_owned))
143143
.zip(repository.refname_to_id("HEAD").ok());
144144
url_oid.map(|(url, oid)| Remote {
145145
repository,

0 commit comments

Comments
 (0)