Skip to content

Commit c85b92d

Browse files
committed
fix: Prefer the actual state over following core.symlinks in entry::Mode
1 parent 648022b commit c85b92d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gix-index/src/entry/mode.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ impl Mode {
4949
) -> Option<Change> {
5050
match self {
5151
Mode::FILE if !stat.is_file() => (),
52+
Mode::SYMLINK if stat.is_symlink() => return None,
5253
Mode::SYMLINK if has_symlinks && !stat.is_symlink() => (),
5354
Mode::SYMLINK if !has_symlinks && !stat.is_file() => (),
5455
Mode::COMMIT | Mode::DIR if !stat.is_dir() => (),

0 commit comments

Comments
 (0)