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.

Undo Discard is broken #588

Closed
Closed

Description

@ungb

Versions

Atom Version (atom --version):
Atom : 1.14.4
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0

GitHub Package Version (git --git-dir ~/.atom/packages/github/.git rev-parse head):
bf64767

Repro Steps:

  1. Open a Package in a git repo that has folders, Open a file that is in a sub directory.
  2. Make some changes to the file in step 1
  3. discard a few changes you made
  4. Click on undo discard

Expected: undo discard

Actual: error in console log

root-controller.js:468 Error: ENOENT: no such file or directory, open '/var/folders/lp/h7g12x7j68s02jr25ybpt2vc0000gn/T/github-discard-history-w22r0I/atom/github-package-acceptance.md-before-discard'
    at Error (native)(anonymous function) @ root-controller.js:468step @ root-controller.js:25(anonymous function) @ root-controller.js:25

screenshot:
image

/cc @kuychaco

Activity

  1. BinaryMuse commented on Mar 2, 2017

    @BinaryMuse
    Contributor

    @ungb Was the file you discarded/undid the discard in in a subdirectory in the repo?

  2. ungb commented on Mar 2, 2017

    @ungb
    Author

    yes it was!

  3. BinaryMuse commented on Mar 2, 2017

    @BinaryMuse
    Contributor

    In that case it's a dup of #566 (edit: closed that issue as this one has more details)

  4. added this to the Public Release milestone on Mar 3, 2017
  5. self-assigned this
    on Mar 3, 2017
  6. added a commit that references this issue on Mar 3, 2017
    0003447
  7. VityaSchel commented on Mar 28, 2021

    @VityaSchel

    I just lost dozens of hours because undo discard doesn't work. Guess next time I will commit and push every line of code I wrote.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions