Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions git2-hooks/src/hookspath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ impl HookPaths {
S: AsRef<OsStr>,
{
let hook = self.hook.clone();
log::trace!("run hook '{:?}' in '{:?}'", hook, self.pwd);
log::trace!(
"run hook '{}' in '{}'",
hook.display(),
self.pwd.display()
);

let run_command = |command: &mut Command| {
command
Expand Down Expand Up @@ -250,7 +254,7 @@ fn is_executable(path: &Path) -> bool {
let metadata = match path.metadata() {
Ok(metadata) => metadata,
Err(e) => {
log::error!("metadata error: {}", e);
log::error!("metadata error: {e}");
return false;
}
};
Expand Down
Loading