I've got a similar issue on Windows using Git bash. I'm hoping that
the repository does not need to be nfs mounted to the review board.
Git ls -remote works
$ git ls-remote
From <redacted>@gitolite.hubteam.com:/puppet.git
91ef4590b8c61b7d07ed3c3cfaf2b21b7c38db02 HEAD
91ef4590b8c61b7d07ed3c3cfaf2b21b7c38db02 refs/heads/master
I've got my .reviewboardrc in $HOME with the repository
<redacted>@gitolite.hubteam.com:/puppet.git and reviewboard url.
I've got a .gitconfig now with only reviewboard (no repository entry)
the same with .git/config as well.
I had to re-create my ssh keys with git bash ssh-keygen instead of
Putty keygen. Turns out Putty makes a public key that isn't
recognized.
I then imported my id_rsa pub into Putty and created a private key
which was added to the reviewboard.
I then had to initiate a ssh session to the host to cache the server
I then recreated the local repository with git clone from the gitolite
master (was challenged for passphrase)
I created my own branch and made edits, added, committed and diffed
them.
The post review won't work. It will work locally with a -n and if I
redirect that to a file I then upload in the GUI, it will work.
$ post-review --parent=master --server=
https://svn.hubteam.com/
reviews
There was an error creating this review request.
The repository path "<redacted>@gitolite.hubteam.com:/
puppet.git" is not in the
list of known repositories on the server.
Ask the administrator to add this repository to the Review
Board server.
For information on adding repositories, please read
http://www.reviewboard.org/docs/manual/dev/admin/management/repositories/
Calling post review without the parent and server gets me a complete
failure
$ post-review
host:
svn.hubteam.com
method: GET
selector: /reviews/api/
Traceback (most recent call last):
File "c:\Python27\Scripts\post-review-script.py", line 8, in
<module>
load_entry_point('rbtools==0.3.4', 'console_scripts', 'post-
review')()
File "C:\Python27\lib\site-packages\rbtools-0.3.4-py2.7.egg\rbtools
\postreview
.py", line 3972, in main
File "C:\Python27\lib\site-packages\rbtools-0.3.4-py2.7.egg\rbtools
\postreview
.py", line 510, in check_api_version
File "C:\Python27\lib\site-packages\rbtools-0.3.4-py2.7.egg\rbtools
\postreview
.py", line 962, in api_get
File "C:\Python27\lib\site-packages\rbtools-0.3.4-py2.7.egg\rbtools
\postreview
.py", line 932, in http_get
File "C:\Python27\lib\urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "C:\Python27\lib\urllib2.py", line 394, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 412, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1204, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1177, in do_open
print "data: " + req.data
TypeError: cannot concatenate 'str' and 'NoneType' objects
Any ideas?
Thanks,
Heidi
On Nov 8, 3:38 pm, Christian Hammond <
chip...@chipx86.com> wrote:
> You still need .reviewboardrc so post-review knows which server to talk to
> in the first place. It's actually the recommended setup.
>
> You shouldn't have to rely on NFS.
>
> Looking over your previous e-mail, I noticed the ssh:// URL. Git actually
> doesn't use this format. Rather, if you just do g...@mydomain.com:path/to/git,
> it'll understand that that's SSH, and do the appropriate things. Clearly in
> your case, something else is failing here. Executing the ls-remote command
> with that path appeared to work for you, but it's not working when Review
> Board does it? That smells like an SSH key configuration problem.
>
> Can you show me exactly what happens when Review Board does it? And are you
> 100% certain that Review Board lists the proper SSH key in the Admin UI's
> SSH page?
>
> Christian
>
> --