Skip to content

Commit f52438e

Browse files
chore(deps): bump the rust-dependencies group across 1 directory with 3 updates (#4)
* chore(deps): bump the rust-dependencies group across 1 directory with 3 updates Bumps the rust-dependencies group with 3 updates in the / directory: [git2](https://github.com/rust-lang/git2-rs), [serde_json](https://github.com/serde-rs/json) and [reqwest](https://github.com/seanmonstar/reqwest). Updates `git2` from 0.20.4 to 0.21.0 - [Changelog](https://github.com/rust-lang/git2-rs/blob/main/CHANGELOG.md) - [Commits](rust-lang/git2-rs@git2-0.20.4...git2-0.21.0) Updates `serde_json` from 1.0.149 to 1.0.150 - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](serde-rs/json@v1.0.149...v1.0.150) Updates `reqwest` from 0.13.3 to 0.13.4 - [Release notes](https://github.com/seanmonstar/reqwest/releases) - [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md) - [Commits](seanmonstar/reqwest@v0.13.3...v0.13.4) --- updated-dependencies: - dependency-name: git2 dependency-version: 0.21.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: rust-dependencies - dependency-name: serde_json dependency-version: 1.0.150 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies - dependency-name: reqwest dependency-version: 0.13.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: rust-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * fix: adapt remote.url() for git2 0.21 breaking API change --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Hugefiver <i@iruri.moe>
1 parent ecb0e3c commit f52438e

3 files changed

Lines changed: 11 additions & 48 deletions

File tree

Cargo.lock

Lines changed: 9 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2024"
55
description = "logit — lines of git"
66

77
[dependencies]
8-
git2 = "0.20"
8+
git2 = "0.21"
99
tokei = "14.0"
1010
clap = { version = "4", features = ["derive"] }
1111
serde = { version = "1", features = ["derive"] }

src/git/repo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn parse_remote_url(url: &str) -> Option<RemoteInfo> {
4949
pub fn get_remote_origin(repo_path: &Path) -> Option<String> {
5050
let repo = Repository::open(repo_path).ok()?;
5151
let remote = repo.find_remote("origin").ok()?;
52-
remote.url().map(|u| u.to_string())
52+
remote.url().ok().map(|u| u.to_string())
5353
}
5454

5555
pub struct RepoAnalyzer {

0 commit comments

Comments
 (0)