Skip to content

Commit

Permalink
chore: added git debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 27, 2024
1 parent 64271ed commit 7df466e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ impl Git {

pub fn repo(&self) -> Result<&git2::Repository> {
self.repo.get_or_try_init(|| {
trace!("opening git repository at {:?}", self.dir);
git2::Repository::open(&self.dir)
.wrap_err_with(|| format!("failed to open git repository at {:?}", self.dir))
.inspect_err(|err| warn!("{err:#}"))
Expand Down

0 comments on commit 7df466e

Please sign in to comment.