Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commit -amend fails on first commit #106

Closed
zombiezen opened this issue May 2, 2019 · 0 comments
Closed

commit -amend fails on first commit #106

zombiezen opened this issue May 2, 2019 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@zombiezen
Copy link
Member

Steps to Reproduce

$ gg init
$ touch foo.txt
$ gg add foo.txt
$ gg commit -m first
$ echo hello > foo.txt
$ gg commit -amend

Expected Behavior

Editor is opened for amending

Actual Behavior

gg crashes with:

gg: diff status:
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>...]'

Version Info

gg version 0.7.1, built on 2019-02-13T18:53:28Z
go: go1.11.5 gc linux/amd64
git version 2.20.1
@zombiezen zombiezen added this to the 0.8 milestone May 2, 2019
@zombiezen zombiezen added the bug Something isn't working label Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant