Skip to content

Commit

Permalink
Update git2 to 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc committed Mar 2, 2023
1 parent afd36da commit 6a07cc3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ vte = "0.10.1"
xdg = "2.4.1"

[dependencies.git2]
version = "0.14.0"
version = "0.16.1"
default-features = false
features = []

Expand Down
5 changes: 3 additions & 2 deletions src/options/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ lazy_static! {

pub fn get_themes(git_config: Option<git_config::GitConfig>) -> Vec<String> {
let mut themes: Vec<String> = Vec::new();
for e in &git_config.unwrap().config.entries(None).unwrap() {
let entry = e.unwrap();
let git_config = git_config.unwrap();
let mut entries = git_config.config.entries(None).unwrap();
while let Some(Ok(entry)) = entries.next() {
let entry_name = entry.name().unwrap();
let caps = GIT_CONFIG_THEME_REGEX.captures(entry_name);
if let Some(caps) = caps {
Expand Down

0 comments on commit 6a07cc3

Please sign in to comment.