ingydotnet / git-hub

Do GitHub operations from the `git` command
MIT License
794 stars 62 forks source link

GIT_HUB_EDIT_MSG file logic broken for pr-new #231

Closed perlpunk closed 2 years ago

perlpunk commented 8 years ago

I only remove lines starting with # when reusing an old msg file from a command that failed. In case of pr-new it also contains the output of git diff, without #

perlpunk commented 8 years ago

To test this:

git hub clone perlpunk/test-api-repo
cd test-api-repo
git checkout testbranch
git hub pr-new

Then leave the first line empty and add some description to the body. This way no PR will be created.


test description

After that, try git hub issue-new for example. Type r for reuse.

If you do this on master, you will see the diff output from the pr-new in the body, which shouldn't be there. Delete .git/GIT_HUB_EDIT_MSG and try the whole thing again on this branch.