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

pull-request is broken: fatal: Needed a single revision #19

Open
rit opened this issue Apr 23, 2010 · 21 comments
Open

pull-request is broken: fatal: Needed a single revision #19

rit opened this issue Apr 23, 2010 · 21 comments
Labels

Comments

@rit
Copy link

rit commented Apr 23, 2010

gh pull-request username
fatal: Needed a single revision

@tysonmote
Copy link

Seems like this might be related to private repos.

@drnic
Copy link
Collaborator

drnic commented Jan 31, 2011

Still broken? Does "gh pull-request" work at all with the new Pull Requests v2 mechanism?

@lorensr
Copy link

lorensr commented Apr 17, 2011

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

@glennr
Copy link

glennr commented Sep 8, 2011

+1

1 similar comment
@bmatheny
Copy link

+1

@tjacobs
Copy link

tjacobs commented Sep 29, 2011

So, pull-request is just broken?

@manuelbernhardt
Copy link

+1

1 similar comment
@jayniz
Copy link

jayniz commented Dec 5, 2011

+1

@drnic
Copy link
Collaborator

drnic commented Dec 6, 2011

Anyone want to fix this?

@lorensr
Copy link

lorensr commented Dec 6, 2011

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)?

@manuelbernhardt
Copy link

I think prompting for the password is fine

@jmuheim
Copy link

jmuheim commented Nov 12, 2012

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.

@murnieza
Copy link

murnieza commented Feb 5, 2013

Still getting errors like that. Any suggestions how to do a pull request from command line?

@lastravex
Copy link

any updates on this?

@davidtian02
Copy link

bump

@phspagiari
Copy link

bump. I still can't do a pull-request from command line.

@jonathancross
Copy link

Don't be so impatient everybody. It's only been 6 years.

@castillo-n
Copy link

+1

1 similar comment
@jum-s
Copy link

jum-s commented Oct 27, 2017

+1

@wwalker
Copy link

wwalker commented Oct 11, 2019

Does anyone have an active fork?

@semmet95
Copy link

semmet95 commented Jun 6, 2022

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests