repo upload failing with "Unsupported Protocol" error

219 views
Skip to first unread message

PacoSage

unread,
Oct 16, 2009, 2:46:54 PM10/16/09
to Repo and Gerrit Discussion
I'm having a strange repo problem... I'm trying to setup a manifest
that allows users to pull from/submit to our local (test) Gerrit
server. The default.xml manifest file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://git-dev.nvidia.com/" name="git-dev" review="git-
dev.nvidia.com"/>

<default remote="git-dev" revision="master"/>

<project name="test"/>
</manifest>


After pushing this to the Gerrit server, I can successfully init repo
using this repository:
> repo init -u git://git-dev.nvidia.com/manifest.git
...
repo initialized in /home/ksage/git/repo-gitdev

And I can sync:
> repo sync
Initializing project test ...
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (3/3), done.
From git://git-dev.nvidia.com/test
* [new branch] master -> git-dev/master

And of course I can go into test, do a "repo start" to create a topic
branch, add a new file, commit, and repo status, etc. However, the
upload is failing:
> repo upload
Upload project test/:
branch bar2 ( 1 commit, Fri Oct 16 11:39:37 2009 -0700):
6edd0b83 Adding test file #2
to git-dev.nvidia.com (y/n)? y
--------------------------------------------
[FAILED] test/ bar2 (Unsupported protocol git-
dev.nvidia.com)


I'm not sure what it's talking about as far as "unsupported
protocol". That server is listening on Gerrit's default SSH port:
> ssh -p 29418 ks...@git-dev.nvidia.com
gerrit: no shell available
Connection to git-dev.nvidia.com closed.

I've tried changing the syntax of the "review" entry in the manifest
to include "ssh://" and to include the port number, but neither
helped.

Any ideas?

Thanks!

Shawn Pearce

unread,
Oct 16, 2009, 3:22:43 PM10/16/09
to repo-d...@googlegroups.com
On Fri, Oct 16, 2009 at 11:46, PacoSage <paco...@gmail.com> wrote:
>  [FAILED] test/           bar2             (Unsupported protocol git-
> dev.nvidia.com)

repo can't get http://git-dev.nvidia.com/ssh_info so it can't figure
out how to upload over SSH to your Gerrit daemon. If Gerrit is in a
subdirectory or on a different port you need to set review in the
manifest to the URL to Gerrit, e.g.
"http://git-dev.nvidia.com/review/" if that is the URL you use to
access Gerrit in the browser.

Kevin Sage

unread,
Oct 16, 2009, 4:08:05 PM10/16/09
to repo-d...@googlegroups.com
Awesome, that fixed it.  We do indeed have Gerrit in a subdir (/gerrit), and after updating the file as you suggested it works perfectly.

Thanks!
Reply all
Reply to author
Forward
0 new messages