Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion asyncgit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ It wraps libraries like git2 and gix.
clippy::module_name_repetitions,
clippy::must_use_candidate,
clippy::missing_errors_doc,
clippy::empty_docs
clippy::empty_docs,
clippy::unnecessary_debug_formatting
)]
//TODO:
#![allow(
Expand Down
8 changes: 4 additions & 4 deletions asyncgit/src/sync/submodules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,26 +115,26 @@ pub fn submodule_parent_info(
let repo = repo(repo_path)?;
let repo_wd = work_dir(&repo)?.to_path_buf();

log::trace!("[sub] repo_wd: {:?}", repo_wd);
log::trace!("[sub] repo_wd: {repo_wd:?}");
log::trace!("[sub] repo_path: {:?}", repo.path());

if let Some(parent_path) = repo_wd.parent() {
log::trace!("[sub] parent_path: {:?}", parent_path);
log::trace!("[sub] parent_path: {parent_path:?}");

if let Ok(parent) = Repository::open_ext(
parent_path,
RepositoryOpenFlags::FROM_ENV,
Vec::<&Path>::new(),
) {
let parent_wd = work_dir(&parent)?.to_path_buf();
log::trace!("[sub] parent_wd: {:?}", parent_wd);
log::trace!("[sub] parent_wd: {parent_wd:?}");

let submodule_name = repo_wd
.strip_prefix(parent_wd)?
.to_string_lossy()
.to_string();

log::trace!("[sub] submodule_name: {:?}", submodule_name);
log::trace!("[sub] submodule_name: {submodule_name:?}");

if let Ok(submodule) =
parent.find_submodule(&submodule_name)
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
clippy::multiple_crate_versions,
clippy::bool_to_int_with_if,
clippy::module_name_repetitions,
clippy::empty_docs
clippy::empty_docs,
clippy::unnecessary_debug_formatting
)]

//TODO:
Expand Down
Loading