Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Can't see staged/unstaged changes for files with a question mark in the file name #1610

Closed

Description

@rerodrigues commented on Jul 23, 2018, 3:53 PM UTC:

Prerequisites

Description

When clicking in a new or modified file in the git panel, if the filename contains a questions mark, Atom gets lost.

Steps to Reproduce

  1. Create or modify a file with a question mark in the name (ex. users?name=John)
  2. Click on this file in the git panel.

Expected behavior: [What you expect to happen]
The changes made on the file since the last version to be displayed.

Actual behavior: [What actually happens]

  • the file shows empty on a suspended tab
  • the git the panel shows the "Initialize a new project directory with a Git repository" default message.
  • the status bar git applet shows "0 Files", and all the git related commands disappears

Reproduces how often: [What percentage of the time does it reproduce?]
100% of the times

Versions

 Atom    : 1.28.2
 Electron: 2.0.5
 Chrome  : 61.0.3163.100
 Node    : 8.9.3

apm  1.19.0
npm  3.10.10
node 6.9.5 x64
atom 1.28.2
python 2.7.10
git 2.15.1

ProductName:	 Mac OS X
ProductVersion: 10.13.4
BuildVersion: 17E199

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

I have a mock server that everytime you hit an unmocked URL it creates a mocked version of the response replicating the URL and querystring structure of the request on the file system. This is the reason of the filenames with a question mark in the name.

Edit:
Console output:

Unable to locate git workspace root for atom-github:/file-patch/test.json?teste?workdir=%2FUsers%2Frenrodrigues%2Fdev%2Ftestdir&stagingStatus=unstaged. Expected if atom-github:/file-patch/test.json?teste?workdir=%2FUsers%2Frenrodrigues%2Fdev%2Ftestdir&stagingStatus=unstaged is not in a git repository. Error: ENOENT: no such file or directory, stat 'atom-github:/file-patch/test.json?teste?workdir=%2FUsers%2Frenrodrigues%2Fdev%2Ftestdir&stagingStatus=unstaged'

This issue was moved by rsese from atom/atom#17730.

Activity

  1. rsese commented on Jul 24, 2018

    @rsese
    Contributor

    Thanks for the report @rerodrigues - I can reproduce with Atom 1.30.0-dev-4a5ac6623 on macOS 10.12.6.

  2. changed the title [-]Filename with question mark in git panel[/-] [+]Can't see staged/unstaged changes for files with a question mark in the file name[/+] on Jul 24, 2018
  3. self-assigned this
    on Aug 23, 2018
  4. annthurium commented on Aug 24, 2018

    @annthurium

    thanks for reporting, @rerodrigues!

    Just merged a fix. It will go out in the next release of the GitHub package (0.20.0).

  5. rerodrigues commented on Sep 5, 2018

    @rerodrigues

    Thanks @annthurium! This was a small but really annoying bug! 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions