github-gem
github-gem copied to clipboard
pull-request is broken: fatal: Needed a single revision
gh pull-request username fatal: Needed a single revision
Seems like this might be related to private repos.
Still broken? Does "gh pull-request" work at all with the new Pull Requests v2 mechanism?
gh -h gives:
pull-request => Generate the text for a pull request. % github pull-request [user] [branch]
I assume it is supposed to not only generate text but also perform the pull request? Also, it would be nice if it by default associates the request with the user from whom I forked it and uses whatever the working branch is. When I enter:
$ github pull-request [user] master
I get:
fatal: Needed a single revision
+1
+1
So, pull-request is just broken?
+1
+1
Anyone want to fix this?
gh pull-request lorensr master
causes the github gem to execute git request-pull lorensr/master origin
, which is what gives the output fatal: Needed a single revision
. Taking out the lorensr/
prevents the fatal error: https://gist.github.com/1436737. I can't find anything in the code that communicates with Github - it only execs the above command. man git-request-pull
gives "Summarizes the changes between two commits to the standard output, and includes the given URL in the generated summary." I take it that there is no native git concept of a pull request, and that both git request-pull
and gh pull-request
are just meant to generate suitable text to be emailed to the owner of the remote repo. It would be more useful for gh pull-request
to actually perform a github.com pull request (and this is probably what most people expect it to do). This can be done with an HTTP post via the API (http://developer.github.com/v3/pulls/), but that requires authentication. Would it be fine to have gh pull-request
prompt for the user's github password (and add a -p password option)?
I think prompting for the password is fine
Is there any news on this? Is it possible to do a pull request from the command line? I'm using the newest github gem, and I'm still getting this error.
Still getting errors like that. Any suggestions how to do a pull request from command line?
any updates on this?
bump
bump. I still can't do a pull-request from command line.
Don't be so impatient everybody. It's only been 6 years.
+1
+1
Does anyone have an active fork?
+1