Skip to content

Git: Illegal value for line #32681

@will-l-h

Description

@will-l-h

I'm getting an error if I attempt to Revert Selection on a line if the first line in the tracked file has been deleted. If I manually restore the first line, the revert works as expected.

  • VSCode Version:
    1.15.1
    1.16.0-insider

  • OS Version:
    Windows 10 x64

  • git version
    2.13.3.windows.1 ( also upgraded to 2.14.1.windows.1)

Steps to Reproduce:

  1. Delete the first line in a file tracked by Git
  2. Modify any line after what is the new line 1, e.g. line 4
  3. Revert Selection on the modified (line 4)
  4. A prompt appears that states Git: Illegal value for line : Open Git Log, Close
  5. If you clear the git log just prior to the attempt, it's still empty after

Reproduces without extensions: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issuesgood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions