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.

Undoing the first commit in a repository throws an exception #1440

Description

@Ben3eeE

Prerequisites

Description

Undoing the last commit in a repository throws an error in the console.

Seems like a pretty low priority issue 😅

Uncaught (in promise) GitError: git -c color.ui=false -c color.status=false -c color.showBranch=false -c color.diff=false -c color.branch=false reset --soft HEAD~ in I:\atom pull testing\github-pegex exited with code 128
stdout: 
stderr: 19:56:48.962879 git.c:344               trace: built-in: git reset --soft 'HEAD~'
fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

    at new GitError (C:\Users\bene\AppData\Local\atom\app-1.27.0-beta1\resources\app\node_modules\github\lib\git-shell-out-strategy.js:115:24)
    at C:\Users\bene\AppData\Local\atom\app-1.27.0-beta1\resources\app\node_modules\github\lib\git-shell-out-strategy.js:383:33
    at Generator.next (<anonymous>)
    at step (C:\Users\bene\AppData\Local\atom\app-1.27.0-beta1\resources\app\node_modules\github\lib\git-shell-out-strategy.js:104:197)
    at C:\Users\bene\AppData\Local\atom\app-1.27.0-beta1\resources\app\node_modules\github\lib\git-shell-out-strategy.js:104:367
    at <anonymous>
GitError @ <embedded>:191359
(anonymous) @ <embedded>:191629
step @ <embedded>:191350
(anonymous) @ <embedded>:191350
19:56:49.044 

Steps to Reproduce

  1. Open Atom in a repository with only 1 commit
  2. Attempt to undo the commit using the undo button

Expected behavior:

Not throw exception

Actual behavior:

Throws exception in the console

Reproduces how often:

100%

Versions

1.27.0-beta1

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions