Page MenuHomePhabricator

Not Permitted to Push: Contact an Administrator to Fix the Permissions
Closed, InvalidPublic

Description

Go to T265463: Outreachy Microtask: Check if '/tests/selenium/log' is included in .gitignore in all repositories with Selenium tests

Scroll down to the repositories and copy the repo: wikidata/query/gui

Search it on the internet
Expected: https://www.mediawiki.org/wikidata/query/gui

Result: No information is available for this page

https://www.mediawiki.org/wiki/Developer_access

I tried cloning the repo by editing another repo, after modifying the .gitignore file by adding /tests/selenium/log, I tried pushing the commit to Gerrit

Expected: Succesful

Actual Results:

USER@DESKTOP-O8MNHDO MINGW64 ~/gui (master)
$ ssh -p 29418 blessingdickson@gerrit.wikimedia.org

  ****    Welcome to Gerrit Code Review    ****

  Hi BlessingDickson, you have successfully connected over SSH.

  Unfortunately, interactive shells are disabled.
  To clone a hosted Git repository, use:

  git clone ssh://blessingdickson@gerrit.wikimedia.org:29418/REPOSITORY_NAME.git

Connection to gerrit.wikimedia.org closed by remote host.
Connection to gerrit.wikimedia.org closed.

USER@DESKTOP-O8MNHDO MINGW64 ~/gui (master)
$ git add *.gitignore*

USER@DESKTOP-O8MNHDO MINGW64 ~/gui (master)
$ git commit
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean

USER@DESKTOP-O8MNHDO MINGW64 ~/gui (master)
$ git push origin HEAD:ref/for/master
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 378 bytes | 14.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2)
remote: error: branch refs/heads/ref/for/master:
remote: You need 'Create' rights to create new references.
remote: User: blessingdickson
remote: Contact an administrator to fix the permissions
remote: Processing changes: refs: 1, done
To https://gerrit.wikimedia.org/r/wikidata/query/gui
 ! [remote rejected] HEAD -> ref/for/master (prohibited by Gerrit: not permitted: create)
error: failed to push some refs to 'https://gerrit.wikimedia.org/r/wikidata/query/gui'

USER@DESKTOP-O8MNHDO MINGW64 ~/gui (master)
$

Event Timeline

Hi, for future reference please use the task preview and see https://www.mediawiki.org/wiki/Phabricator/Help#Formatting_and_markup

Result: No information is available for this page
https://www.mediawiki.org/wiki/Developer_access

It very clearly says: "Commit code to Wikimedia's Git repositories via our code review system, powered by Gerrit. See also Gerrit/Tutorial."
There is info available. I don't know why you are searching something on the internet.

I tried cloning the repo by editing another repo

Your task description shows no command where you clone any repository.

This sounds like a support request how to use Gerrit but not like a bug report for Phabricator.

Please also see https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker#Feedback,_questions_and_support

"It very clearly says: "Commit code to Wikimedia's Git repositories via our
code review system, powered by Gerrit. See also Gerrit/Tutorial."
There *is* info available. I don't know why you are searching something on
the internet".
Hi, please can you send me the link to where I can find the information
above? Ok, so why can't I push the commit to Gerrit after modifying the.
gitignore file? At first when I was looking for the page, it said on
Wikimedia that my IP address has been blocked, that I should contact an
administrator. Out of the three repos I picked, I could succeed with just
one, the other two are giving me issues.
Thanks for reviewing and commenting.

You have a typo in your command – ref/for/master should be refs/for/master.

BlessingDickson: Unrelated, but for future reference, please properly quote. It's impossible to see who wrote what in your previous comment. Thanks. :)

Hi, please can you send me the link to where I can find the information
above?

You linked to it yourself already: https://www.mediawiki.org/wiki/Developer_account

Ok, so why can't I push the commit to Gerrit after modifying the.
gitignore file?

Impossible to say without exact and complete commands (no paraphrasing!) which would allow someone to reproduce. Please see https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker#Feedback,_questions_and_support ; this is off-topic for a Phabricator ticket. Thanks!