Have you used the public SSH key with some other Gitorious user account before? That has been the cause of this problem for a number of people earlier. This is due to Gitorious matching the user by his/her SSH key when pushing, and in case the same key is used with multiple accounts, only one account will be identified. And if that account doesn't have the correct rights (which is normally the case), then the push will be denied.
//Peter From: [email protected] [mailto:[email protected]] On Behalf Of Byron Gibson Sent: 21 February 2012 05:51 To: [email protected] Subject: [gitorious] Can't push to my clones of someone else's repo's I have two cloned repo's, and when I try to push changes to my clones, I get the error "You do not have write access this repository". Several other reports of this error in the forums from a year or two ago, but no solutions yet. I updated my public key in Gitorious (but it was already there), and verified that on both repo's I am type:user, permissions: commit, review, admin. Both cloned repo's inherited those permissions. (Is there any other type besides 'user'?) Walkthrough: 1. Clone https://gitorious.org/learn-x-the-hard-way/ to my Gitorious account: [email protected]:~byrongibson/learn-c-the-hard-way/byrongibsons-learn-c-the-hard-way.git [email protected]:~byrongibson/learn-x-the-hard-way/learn-cpp-the-hard-way.git 2. On local machine: $> git clone [email protected]:~byrongibson/learn-c-the-hard-way/byrongibsons-learn-c-the-hard-way.git $> git remote add upstream git://gitorious.org/learn-x-the-hard-way/learn-x-the-hard-way.git $> git clone [email protected]:~byrongibson/learn-x-the-hard-way/learn-cpp-the-hard-way.git $> git remote add upstream git://gitorious.org/learn-x-the-hard-way/learn-x-the-hard-way.git 3. Modify the README file, then $> git add -A $> git commit -m 'update README' $> git push origin master 4. Error: $> git push origin master Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 471 bytes, done. Total 3 (delta 2), reused 0 (delta 0) == Gitorious: ========================================================== You do not have write access to this repository ======================================================================== error: hooks/pre-receive exited with error code 1 To [email protected]:~byrongibson/learn-x-the-hard-way/learn-cpp-the-hard-way.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '[email protected]:~byrongibson/learn-x-the-hard-way/learn-cpp-the-hard-way.git' $> Same error with the other repo as well. Not sure what else to try. Any suggestions appreciated. -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
