Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2410 by ap...@gmx.de: post-review bug breaks using --repository-url
http://code.google.com/p/reviewboard/issues/detail?id=2410

* NOTE: Do not post confidential information in this bug report. *
*       If you need immediate support, please contact            *
*       reviewbo...@googlegroups.com                             *

What version are you running?
RBTools 0.3.4
ReviewBoard 1.6

What's the URL of the page containing the problem?
Local install, not available outside

What steps will reproduce the problem?
1. setup git repository with url ssh://githost/reponame
2. run post-review with --repository-url="ssh://githost/reponame" in a git repository which has ssh://git@githost/reponame as url for the remote location
3. receive error:
Traceback (most recent call last):
  File "/usr/local/bin/post-review", line 9, in <module>
    load_entry_point('RBTools==0.3.4', 'console_scripts', 'post-review')()
File "/usr/local/lib/python2.7/dist-packages/RBTools-0.3.4-py2.7.egg/rbtools/postreview.py", line 3954, in main
    repository_info, tool = determine_client()
File "/usr/local/lib/python2.7/dist-packages/RBTools-0.3.4-py2.7.egg/rbtools/postreview.py", line 3902, in determine_client
    repository_info = tool.get_repository_info()
File "/usr/local/lib/python2.7/dist-packages/RBTools-0.3.4-py2.7.egg/rbtools/postreview.py", line 2857, in get_repository_info
    url = origin_url.rstrip('/')
UnboundLocalError: local variable 'origin_url' referenced before assignment

This is probably an indentation bug, I'd guess the referenced line and
comment should belong to the else-branch above. The same code is already executed inside the else-branch

What is the expected output? What do you see instead?


What operating system are you using? What browser?


Please provide any additional information below.


--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to