gg-scm / gg

Git with less typing
https://gg-scm.io
Apache License 2.0
65 stars 1 forks source link

Commit amend fails with renamed files? #129

Closed zombiezen closed 3 years ago

zombiezen commented 4 years ago

Steps to Reproduce

Not exactly sure how to set up directory yet, but...

$ gg commit --amend

Expected Behavior

Editor opens to amend the commit message.

Actual Behavior

gg fails with this error:

gg: read diff entry: expected '\x00' after 'R' or 'C', but not found

--show-git output:

gg: exec: git --version
gg: exec: git status --porcelain -z -unormal
gg: exec: git log --max-count=1 -z --pretty=tformat:%H%x00%P%x00%an%x00%ae%x00%aI%x00%cn%x00%ce%x00%cI%x00%B HEAD --
gg: exec: git diff --name-status -z 99e476b18674ff0737873c0f4e98d64baddf9073

Version Info

gg built from source at debcabbbb901c74f64e79e9a5b2703140a6c5953 on 2020-10-12T16:53:39Z
go: go1.15.2 gc linux/amd64
git version 2.17.1
zombiezen commented 3 years ago

Seems like this occurs when amending a commit that contains renames.