gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Incorrect treatment of symlink

Open dmitry-gils opened this issue 5 months ago • 0 comments

Describe the bug I have .venv symlink in the repo, pointing to the .venv dir outside repo directory. .venv is also present in .gitignore.

To Reproduce Steps to reproduce the behavior:

  1. Create .venv symlink in the repository, pointing somewhere outside
  2. add .venv to .gitignore
  3. Look into Unstaged changes view, it shows .venv as added
  4. Select .venv in Unstaged changes view, Diff view shows:
┌@@ -0,0 +1 @@
│/home/dmig/Workspace/backend/.venv
â””\ No newline at end of file 

Expected behavior No changes in status view, same is git status shows.

Screenshots Image

Context (please complete the following information):

  • OS/Distro + Version: Arch inside WSL
  • GitUI Version: gitui nightly 2025-02-28 (99f6967)
  • Rust version: n/a

dmitry-gils avatar Aug 14 '25 07:08 dmitry-gils