This looks like an issue with your Git configuration on RB. Git doesn't
support remote file access, so if you're not using something like GitHub or
GitLab, you'll need to read our docs on setting up cgit/gitweb for access,
through the repository entry's Raw File URL Mask field.

Christian


On Monday, May 5, 2014, Markus Grimm <m.gr...@adnymics.com> wrote:

> Hi David,
>
> thank you for your answer. I provided the server to rbt post, but it is
> still not working. There seems something wrong with the diff created. I get
> the same error as when I try to upload a manually created diff when
> creating a new review request:
>
> ERROR: Error uploading diff
>
>
> One or more fields had errors (HTTP 400, API Error 105)
>
>     path: fatal: Not a git repository: 'None'
>
>
> Your review request still exists, but the diff is not attached.
>
> The debug output of the post command looks like this:
>
> $ rbt post --server http://localhost -d
> >>> RBTools 0.6
> >>> Python 2.7.3 (default, Feb 27 2014, 19:58:35)
> [GCC 4.6.3]
> >>> Running on Linux-3.11.0-20-generic-x86_64-with-Ubuntu-12.04-precise
> >>> Home = /home/mgrimm
> >>> Current directory = /home/mgrimm/adnymics/adnymics
> >>> Checking for a Subversion repository...
> >>> Unable to execute "svn help": skipping SVN
> >>> Checking for a Git repository...
> >>> Running: git rev-parse --git-dir
> >>> Running: git config core.bare
> >>> Running: git rev-parse --show-toplevel
> >>> Running: git symbolic-ref -q HEAD
> >>> Running: git config --get branch.futures/newfeature.merge
> >>> Command exited with rc 1: ['git', 'config', '--get',
> 'branch.futures/newfeature.merge']
> ---
> >>> Running: git config --get branch.futures/newfeature.remote
> >>> Command exited with rc 1: ['git', 'config', '--get',
> 'branch.futures/newfeature.remote']
> ---
> >>> Running: git config --get remote.origin.url
> >>> repository info: Path: git@localhost:~/adnymics.git, Base path: ,
> Supports changesets: False
> >>> Making HTTP GET request to http://localhost/api/
> >>> Making HTTP GET request to http://localhost/api/info/
> >>> Running: git rev-parse refs/heads/futures/newfeature
> >>> Running: git merge-base 0fd9066346303da749de9f4818490c290ad40128
> origin/master
> >>> Running: git rev-parse ebd82d38a40a51e6c78260a5ec06d86412b99281
> >>> Running: git status --porcelain --untracked-files=no
> >>> Running: git diff --no-color --full-index --ignore-submodules
> --no-renames
> ebd82d38a40a51e6c78260a5ec06d86412b99281..0fd9066346303da749de9f4818490c290ad40128
> -M
> >>> Running: git log --reverse --pretty=format:%s%n%n%b
> ^ebd82d38a40a51e6c78260a5ec06d86412b99281
> 0fd9066346303da749de9f4818490c290ad40128
> >>> Making HTTP GET request to http://localhost/api/review-requests/
> >>> Making HTTP POST request to http://localhost/api/review-requests/
> >>> Making HTTP GET request to
> http://localhost/api/review-requests/3/diffs/
> >>> Making HTTP POST request to
> http://localhost/api/review-requests/3/diffs/
> >>> Got API Error 105 (HTTP code 400): One or more fields had errors
> >>> Error data: {u'fields': {u'path': [u"fatal: Not a git repository:
> 'None'\n"]}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had
> errors', u'code': 105}}
> Traceback (most recent call last):
>   File "/usr/local/bin/rbt", line 9, in <module>
>     load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
>   File
> "/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/main.py",
> line 134, in main
>     command.run_from_argv([RB_MAIN, command_name] + args)
>   File
> "/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/__init__.py",
> line 422, in run_from_argv
>     exit_code = self.main(*args) or 0
>   File
> "/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/post.py",
> line 769, in main
>     submit_as=self.options.submit_as)
>   File
> "/usr/local/lib/python2.7/dist-packages/RBTools-0.6-py2.7.egg/rbtools/commands/post.py",
> line 545, in post_request
>     raise CommandError('\n'.join(error_msg))
> rbtools.commands.CommandError: Error uploading diff
>
>
> One or more fields had errors (HTTP 400, API Error 105)
>
>     path: fatal: Not a git repository: 'None'
>
>
> Your review request still exists, but the diff is not attached.
>
> Can anyone tell me what's missing here? Any help would be appreciated.
>
>
> Am Sonntag, 4. Mai 2014 07:03:39 UTC+2 schrieb David Trowbridge:
>>
>> The 'post-review' command has been deprecated in favor of 'rbt post' for
>> quite some time. As of RBTools 0.6, it has been removed.
>>
>> In order to use rbt post (or even post-review with older versions of
>> rbtools), you'll need to create a .reviewboardrc file that lists your
>> server name.
>>
>> -David
>>
>>
>> On Fri, May 2, 2014 at 7:56 AM, Markus Grimm <m.g...@adnymics.com> wrote:
>>
>>> Hi all,
>>>
>>> I have installed Review-Board V1.7.25 and the RBTools. But I cannot find
>>> any post-review command on my machine as mentioned in the documentation of
>>> Version 1.7 (the "rbt" command is there, though).
>>>
>>> In the latest (dev) documentation, it says, one should use the command
>>> "rbt post". But when I run it in my repository directory, the only output
>>> is:
>>>
>>> "Unable to find a Review Board server for this source code tree."
>>>
>>> Now I am confused. Which command can be used in which version of
>>> Review-Board?
>>>
>>> Best Regards,
>>>
>>> Markus
>>>
>>
>>  --
> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
> ---
> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
> ---
> Happy user? Let us know at http://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> reviewboard+unsubscr...@googlegroups.com<javascript:_e(%7B%7D,'cvml','reviewboard%2bunsubscr...@googlegroups.com');>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to