gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Incorrect file path display in tree view for unassigned/uncommitted files

Open Byron opened this issue 2 months ago • 1 comments

Version

0.16.8

Operating System

macOS

Distribution Method

dmg (Mac OS - Apple Silicon)

Describe the issue

Image
❯ gst
On branch gitbutler/workspace
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .github/actions/run-frontend-tests

reproducer.zip

In the GUI, the tree view for unassigned/uncommitted files sometimes displays file paths incorrectly. For example, the path is rendered as github/actions./run-frontend-tests when it should be .github/actions/run-frontend-tests.

Steps to reproduce:

  1. Make changes that result in unassigned or uncommitted files.
  2. Open the tree view for these files in the GitButler desktop app.
  3. Observe the file paths displayed—note if any paths are shown incorrectly, such as misplaced slashes or dots.

Actual result: Incorrect path such as github/actions./run-frontend-tests. Expected result: Correct path .github/actions/run-frontend-tests.

This may relate to frontend path rendering code such as in UnassignedView.svelte and uncommittedService.svelte.ts.

How to reproduce (Optional)

  1. Make changes that result in unassigned or uncommitted files.
  2. Open the tree view for these files in the GitButler desktop app.
  3. Observe the file paths displayed—note if any paths are shown incorrectly, such as misplaced slashes or dots.

Expected behavior (Optional)

Paths should be displayed as .github/actions/run-frontend-tests.

Relevant log output (Optional)


Byron avatar Oct 11 '25 07:10 Byron

Hi @estib-vega, I thought I'd ping you as this issue might be a candidate for inclusion in some frontend tests, as somehow I was convinced this was already fixed. Thanks again 🙏

Byron avatar Oct 11 '25 07:10 Byron