Skip to content

Commit

Permalink
upgrade to git2 0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 committed Nov 10, 2022
1 parent 9460937 commit cdaef08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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 @@ -18,7 +18,7 @@ debug-assertions = false
overflow-checks = false

[dependencies]
git2 = {version = "0.13", default-features = false, optional = false}
git2 = {version = "0.15", default-features = false, optional = false}
regex = {version = "1.7", default-features = false, optional = false, features = ["std"]}
serde = "1.0"
serde_derive = {version = "1.0", default-features = false, optional = false}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ fn from_args() -> Result<(), String> {
return Ok(());
}
}

let path = matches.get_one("path").unwrap_or(&".");
let repository = get_repo(path)
.map_err(|err| format!("ERROR: {}\n Navigate into a repository before running git-graph, or use option --path", err.message()))?;
Expand Down

0 comments on commit cdaef08

Please sign in to comment.