pushed changes do not show up

631 views
Skip to first unread message

Grazia

unread,
Sep 26, 2011, 9:04:00 AM9/26/11
to Repo and Gerrit Discussion
Premise: I am a novice at Gerrit.

I pushed the changes to my repo, but the changes do not show up for
review under my watched project. I must have missed something, but
can't figure out what. What should I double check ? What doc would you
recommend I re-read carefully ?

$ git push my-dev-gerrit HEAD:refs/for/master
Total 0 (delta 0), reused 0 (delta 0)
To c:/home/applications/Gerrit/my-dev.git
* [new branch] HEAD -> refs/for/master

Magnus Bäck

unread,
Sep 26, 2011, 9:18:20 AM9/26/11
to repo-d...@googlegroups.com
On Monday, September 26, 2011 at 15:04 CEST,
Grazia <grazia.ru...@gmail.com> wrote:

You pushed your commit past Gerrit and straight into the repository,
thereby creating the ref refs/for/branch. Make sure you push with SSH
to Gerrit (by default listening to port 29418).

http://gerrit.googlecode.com/svn/documentation/2.2.0/user-upload.html

--
Magnus Bäck Opinions are my own and do not necessarily
SW Configuration Manager represent the ones of my employer, etc.
Sony Ericsson

Grazia Russo Lassner

unread,
Sep 26, 2011, 10:35:44 AM9/26/11
to repo-d...@googlegroups.com
I believe there is also an issue of ssh keys. I followed
http://review.coreboot.org/Documentation/user-upload.html, and pasted
teh key on the Gerrit web interfae. Then:

$ ssh -p 29418 myname@localhost

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

Hi , you have successfully connected over SSH.

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

git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git

Connection to localhost closed.

> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>

Magnus Bäck

unread,
Sep 26, 2011, 10:43:10 AM9/26/11
to repo-d...@googlegroups.com
On Monday, September 26, 2011 at 16:35 CEST,

Grazia Russo Lassner <grazia.ru...@gmail.com> wrote:

> I believe there is also an issue of ssh keys. I followed
> http://review.coreboot.org/Documentation/user-upload.html, and pasted
> teh key on the Gerrit web interfae. Then:
>
> $ ssh -p 29418 myname@localhost
>
> **** Welcome to Gerrit Code Review ****
>
> Hi , you have successfully connected over SSH.
>
> Unfortunately, interactive shells are disabled.
> To clone a hosted Git repository, use:
>
> git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
>
> Connection to localhost closed.

Good, so it works. Follow the instructions above regarding how to clone
a repository.

Grazia Russo Lassner

unread,
Sep 26, 2011, 10:49:09 AM9/26/11
to repo-d...@googlegroups.com
Tried to clone, but got "No supported authentication methods left to try!"

I did set the environment variable GIT_SSH to point to the plink.exe

Grazia Russo Lassner

unread,
Sep 26, 2011, 10:52:47 AM9/26/11
to repo-d...@googlegroups.com
I am not trying to use github

On Mon, Sep 26, 2011 at 9:49 AM, Grazia Russo Lassner

Magnus Bäck

unread,
Sep 26, 2011, 11:14:25 AM9/26/11
to repo-d...@googlegroups.com
On Monday, September 26, 2011 at 16:49 CEST,

Grazia Russo Lassner <grazia.ru...@gmail.com> wrote:

> On Mon, Sep 26, 2011 at 9:43 AM, Magnus Bäck
> <magnu...@sonyericsson.com> wrote:

[...]

> > > $ ssh -p 29418 myname@localhost
> > >
> > >   ****    Welcome to Gerrit Code Review    ****
> > >
> > >   Hi , you have successfully connected over SSH.
> > >
> > >   Unfortunately, interactive shells are disabled.
> > >   To clone a hosted Git repository, use:
> > >
> > >   git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
> > >
> > > Connection to localhost closed.
> >
> > Good, so it works. Follow the instructions above regarding how to clone
> > a repository.
>

> Tried to clone, but got "No supported authentication methods left to
> try!"

Please quote full terminal transcripts. So

ssh -p 29418 myn...@192.xxx.x.xxx

gives you the previously cited message (without you having to type a
password), while

git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git

fails with the error message above? There shouldn't be a difference
between the two commands as far as SSH goes, unless you have an
insteadOf instruction in your ~/.gitconfig.

> I did set the environment variable GIT_SSH to point to the plink.exe

Uh, okay, but plink != ssh, right? Which command do you intend to use?
Pick one and use it consistently.

If plink can connect just fine, I'd verify that plink actually connects
to the host and port you expect it to, and that it reads the keyfile as
expected. You can use Process Monitor from Sysinternals for that. You
could also wrap plink.exe in a program or script that enables verbose
output (similar to "ssh -vv")?

Nasser Grainawi

unread,
Sep 26, 2011, 11:23:53 AM9/26/11
to Grazia Russo Lassner, repo-d...@googlegroups.com
I did just notice that your test ssh command used myname@localhost, but Gerrit is configured with a host ip of 192.xxx.x.xxx. Does the clone work if you use @localhost?

--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum

Grazia Russo Lassner

unread,
Sep 26, 2011, 11:50:40 AM9/26/11
to Nasser Grainawi, magnu...@sonyericsson.com, repo-d...@googlegroups.com
ssh -p 29418 myn...@192.xxx.x.xxx returns
ssh: connect to host 192.xxx.x.xxx port 29418: Bad file number,

BUT

ssh -p 29418 myname@localhost returns


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

Hi ..., you have successfully connected over SSH.


Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://myn...@192.xxx.x.xxx:29418/REPOSITORY_NAME.git
Connection to localhost closed.

Nasser Grainawi

unread,
Sep 26, 2011, 11:52:16 AM9/26/11
to Grazia Russo Lassner, magnu...@sonyericsson.com, repo-d...@googlegroups.com
From that I would assume that:

git clone ssh://myname@localhost:29418/REPO_NAME.git

would work. Does it?

Grazia Russo Lassner

unread,
Sep 26, 2011, 11:58:13 AM9/26/11
to repo-d...@googlegroups.com
On Mon, Sep 26, 2011 at 10:14 AM, Magnus Bäck

No insteadOf instructions in .gitconfig


>> I did set the environment variable GIT_SSH to point to the plink.exe
>
> Uh, okay, but plink != ssh, right? Which command do you intend to use?
> Pick one and use it consistently.

You are right. Prefer ssh

>
> If plink can connect just fine, I'd verify that plink actually connects
> to the host and port you expect it to, and that it reads the keyfile as
> expected. You can use Process Monitor from Sysinternals for that. You
> could also wrap plink.exe in a program or script that enables verbose
> output (similar to "ssh -vv")?
>
> --
> Magnus Bäck                   Opinions are my own and do not necessarily
> SW Configuration Manager      represent the ones of my employer, etc.
> Sony Ericsson
>

Grazia Russo Lassner

unread,
Sep 26, 2011, 12:38:15 PM9/26/11
to repo-d...@googlegroups.com
If ssh -p 29418 myname@localhost, I get the welcome gerrit code review
message and the request to use the git clone command.

If I try to connect using plink, I get the same error message of "No
supported authetication methods left to try" that I get with the
git clone ssh://myname@localhost:29418/repository_name.git

it seems that the 'git clone' command is using plink, not ssh.

Forgot to mention, I am using the MINGW32 console.

Very confused.

G.

On Mon, Sep 26, 2011 at 10:58 AM, Grazia Russo Lassner

Magnus Bäck

unread,
Sep 26, 2011, 12:50:33 PM9/26/11
to repo-d...@googlegroups.com
On Monday, September 26, 2011 at 18:38 CEST,

Grazia Russo Lassner <grazia.ru...@gmail.com> wrote:

> If ssh -p 29418 myname@localhost, I get the welcome gerrit code review
> message and the request to use the git clone command.
>
> If I try to connect using plink, I get the same error message of
> "No supported authetication methods left to try" that I get with the
> git clone ssh://myname@localhost:29418/repository_name.git
>
> it seems that the 'git clone' command is using plink, not ssh.
>
> Forgot to mention, I am using the MINGW32 console.

Okay, so plink doesn't appear to work. Can't you force Git to use ssh
via GIT_SSH?

It seems plink requires that pageant is running. See
http://help.github.com/ssh-issues/ for more information.

Grazia Russo Lassner

unread,
Sep 26, 2011, 2:35:33 PM9/26/11
to repo-d...@googlegroups.com
This is the issue:

http://code.google.com/p/msysgit/issues/detail?id=313

GIT_SSH cannot be set to a path containing spaces.

Although now that I have eliminated the "cannot spawn" problem, I have
the '....git': not a Gerrit project one

;-))

G.

Reply all
Reply to author
Forward
0 new messages