Skip to content

Preview for git add is broken for files that contain backslashes in their name #467

@sandr01d

Description

@sandr01d

When trying to add a file that has a backslash in its name, the preview will not be shown correctly. Instead the preview shows something like:

error: Could not access 'file\\.txt'

Steps to reproduce

  1. Create a file with a backslash in its name
    echo test > file\\.txt
  2. Try to stage the file using git forgit add
  3. Observe that the preview shows an error message instead of the files content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions