mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 07:15:20 +00:00
Fix skipping content of contained repos
When doing a diff for use in status, we should never show the content of a git repository contained inside another one. The logic to do this was looking for a .git directory and so when a gitlink plain .git file was used, it was failing to exclude the directory content.
This commit is contained in:
parent
f28e4c97b3
commit
ea1ca3c921
@ -880,8 +880,10 @@ static int handle_unmatched_new_item(
|
||||
git_buf *full = NULL;
|
||||
if (git_iterator_current_workdir_path(&full, info->new_iter) < 0)
|
||||
return -1;
|
||||
if (full && git_path_contains_dir(full, DOT_GIT))
|
||||
if (full && git_path_contains(full, DOT_GIT)) {
|
||||
/* TODO: warning if not a valid git repository */
|
||||
recurse_into_dir = false;
|
||||
}
|
||||
}
|
||||
|
||||
/* still have to look into untracked directories to match core git -
|
||||
|
Loading…
Reference in New Issue
Block a user