[Nfd-dev] Fwd: cannot push according to contribution guide

Nick Gordon nmgordon at memphis.edu
Thu Aug 10 13:30:22 PDT 2017


He hasn't set gerrit as a remote to his git repo. Generally speaking, the command is:

git remote add gerrit ssh://username@git.example.com:1234/project

In particular, if you want to contribute to NFD as nmgordon, to the named-data.net gerrit instance, which is hosted on port 29418, the 
command is:

git remote add gerrit ssh://nmgordon@gerrit.named-data.net:29418/NFD

Then, you can use:

git push gerrit HEAD:refs/for/master

I can update the documentation to include a clarifying note.

-Nick


On 08/10/17 14:08, Junxiao Shi wrote:
> Dear folks
>
> A developer at our campus followed the NFD contribution guide, but he's unable to push the changes.
> What did he miss?
>
> Yours, Junxiao
>
> ---------- Forwarded message ----------
> From: "Chavoosh Ghasemi" <chavoosh.ghasemi at gmail.com <mailto:chavoosh.ghasemi at gmail.com>>
> Date: Aug 10, 2017 11:18
> Subject: Re: Redmine account
> To: "Junxiao Shi" <shijunxiao at email.arizona.edu <mailto:shijunxiao at email.arizona.edu>>
> Cc:
>
>     I have followed the instructions and changed the corresponded file to address the assigned task. But now I cannot push my changes to
>     gerrit. When I run this command "/git push gerrit HEAD:/refs/for/master/" I will face the following error:
>
>     /fatal: 'gerrit' does not appear to be a git repository
>     fatal: Could not read from remote repository.
>
>     Please make sure you have the correct access rights
>     and the repository exists.
>
>     /
>     Thanks,
>     /- Chavoosh/
>
>
>     On Tue, Aug 8, 2017 at 6:40 PM, Junxiao Shi <shijunxiao at email.arizona.edu <mailto:shijunxiao at email.arizona.edu>> wrote:
>
>         You should never attempt to commit to GitHub. All commits go through Gerrit. Read
>         https://github.com/named-data/NFD/blob/master/CONTRIBUTING.md <https://github.com/named-data/NFD/blob/master/CONTRIBUTING.md> for
>         how to do that.
>
>
>         On Aug 8, 2017 6:18 PM, "Chavoosh Ghasemi" <chavoosh.ghasemi at gmail.com <mailto:chavoosh.ghasemi at gmail.com>> wrote:
>
>             OK, I have attached a screen shot to this email. Apparently, I cannot change anything on that file and if I do not need any
>             privilege I am wondering why I am not allowed.
>
>             Thanks,
>             /-Chavoosh/
>
>             On Tue, Aug 8, 2017 at 5:18 PM, Junxiao Shi <shijunxiao at email.arizona.edu <mailto:shijunxiao at email.arizona.edu>> wrote:
>
>                 Hi Chavoosh
>
>                 See https://github.com/named-data/NFD/blob/master/CONTRIBUTING.md
>                 <https://github.com/named-data/NFD/blob/master/CONTRIBUTING.md>
>                 You never need any privilege on GitHub.
>
>                 Yours, Junxiao
>
>                 On Tue, Aug 8, 2017 at 4:09 PM, Chavoosh Ghasemi <chavoosh.ghasemi at gmail.com <mailto:chavoosh.ghasemi at gmail.com>> wrote:
>
>                     Hi,
>
>                     To fulfil the assigned task I need to be granted access as an editor on Github repository, in order to modify
>                     /nfd.conf.sample.in <http://nfd.conf.sample.in>/ file. Please add me as an editor or let me know if I am supposed to
>                     work on any other repo, rather than Github.
>
>                     Thanks,
>                     /- Chavoosh/
>
>
>
>
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170810/6d4a8388/attachment.html>


More information about the Nfd-dev mailing list