-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
Can't push to github #43106
Comments
You need to install the github python module. |
Thoughts on why the "use git directly" path didn't work? |
I ran $ pip install --user PyGithub and tried again with the wrapper (but getting it to work without the wrapper first is probably more interesting anyhow): $ llvm/utils/git-svn/git-llvm push -n |
Nico, |
nico |
Ok, just double checked and you do have write access to the repository. |
Ah, looks like there was a branch protection in place limiting who could push. I have removed that protection and I believe you should be able to push using git directly now. Would you be able to try a commit when you have a moment? |
That did the trick, thanks! Pushing directly works now. The NoneType problem when using git-llvm is still present. |
Same here, exact same errors. Stuck on the NoneType and not whitelisted so I can't push to LLVM anymore. |
I suspect I'm having the same problem. My GitHub username is "rotateright". |
My github user is 'gchatelet' but I suspect adding everybody to the whitelist won't scale. |
On debian, you can use the python-github package instead of pip:
I changed my usual invocation from Which is what NoneType is complaining about, in a very opaque way. |
For those using github two factor auth, this will come in handy TL;DR: you need to create a specific access token to authenticate. |
Actually it still doesn't work:
Anyone else has a similar problem? |
Rebasing helped but now I'm missing push access to the repo.
|
I think we have the same access problem, and it should be handled more specifically than the general case - see bug 43790. $ git llvm push
|
Thx for the bug! I arrived to the same conclusion while trying to add myself to SVN's github-usernames.txt
|
pushing works fine, and we deleted git-llvm, so all good now. |
mentioned in issue llvm/llvm-bugzilla-archive#43791 |
Extended Description
see https://reviews.llvm.org/D67772 :
I'm getting
$ llvm/utils/git-svn/git-llvm push -n
Traceback (most recent call last):
File "llvm/utils/git-svn/git-llvm", line 39, in
import github
ImportError: No module named github
now. Are there docs on what I need to do to be able to commit using this script now?
Alternatively I tried pushing via git directly but couldn't get that to work either:
$ git push origin mylocalbranch:master
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 24 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 657 bytes | 657.00 KiB/s, done.
Total 7 (delta 6), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (6/6), completed with 6 local objects.
remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: You're not authorized to push to this branch. Visit https://help.github.com/articles/about-protected-branches/ for more information.
To https://github.com/llvm/llvm-project.git
! [remote rejected] gnmergerev -> master (protected branch hook declined)
error: failed to push some refs to 'https://github.com/llvm/llvm-project.git'
The text was updated successfully, but these errors were encountered: