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

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

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