Closed perlpunk closed 2 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.
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 ofgit diff
, without#