I had a similar problem few weeks ago. We have a RB working with git 
repositories, and they are on separate servers. In the end I've installed 
gitweb which solved issues with generating RR using rbt-post command.

On Thursday, April 3, 2014 12:19:28 PM UTC+2, Tadeusz Kozak wrote:
>
> Answering my own question:
>
>
> http://www.reviewboard.org/docs/manual/dev/admin/configuration/repositories/#git
>
> In order to use Git with Review Board, you’ll need either a local clone on 
> the server, or by using raw file URLs to a web front-end to Git (cgit, 
> Gitweb, etc.) on the Git server. Git doesn’t have a way of fetching an 
> individual file of a given revision from a remote server without having an 
> entire clone, so it works differently from other repository types.
> Local 
> Clone<http://www.reviewboard.org/docs/manual/dev/admin/configuration/repositories/#local-clone>
>
> In order to work with Review Board, a local clone needs to be kept in sync 
> regularly. It should either have direct access to a central Git server, or 
> it needs to be updated on every commit to the central Git server.
>
> The Path 
> field<http://www.reviewboard.org/docs/manual/dev/admin/configuration/repositories/#path-field>
>  should 
> be the full path of the .git directory inside this checkout. For example: 
> /var/git/projectname/.git
>
> The Mirror path 
> field<http://www.reviewboard.org/docs/manual/dev/admin/configuration/repositories/#mirror-path-field>
>  should 
> contain the repository URL. Find the URL you should use from within a git 
> checkout by running the following:
> It's up to the server configuration to poll for changes. Sigh :|
>
>
>
> On Wednesday, April 2, 2014 8:36:53 PM UTC+2, Tadeusz Kozak wrote:
>>
>> Hi All,
>>
>> I am fairly new to reviewboard, so most likely I am missing something. 
>>
>> I am using rboard with git and am submitting post-commit reviews. The 
>> usual flow here is:
>>
>> 1. Create new branch from master
>> 2. Develop stuff
>> 3. Commit and push to origin as needed
>> 4. Task is ready - post a review request with master as a parent
>>
>> From time to time when I want to submit a post-commit review it fails:
>>
>> [tk:~/Work/adl/sources/saymamaplugin] master_tk+ ± rbt post 
>> --testing-done="####" 
>> ERROR:root:Error uploading diff 
>> One or more fields had errors (HTTP 400, API Error 105) 
>> path: error: unable to find 4ab787809955e0b3e5499883c0d21ab005d4b1e4 
>> fatal: git cat-file 4ab787809955e0b3e5499883c0d21ab005d4b1e4: bad file 
>> Your review request still exists, but the diff is not attached. 
>>
>> After manually fetching all the changes from the origin on the repository 
>> used by reviewboard the review request post succeeds:
>> ⌂82% [tk:~/Work/adl/sources/saymamaplugin] master_tk+ 4s 1 ± rbt post 
>> --testing-done="###"
>> Review request #26 posted. 
>> http://reviews.addlive-vpn.com/r/26/
>>
>> I basically just SSH into the machine, cd to the repository configured in 
>> review board and call
>>
>> git fetch origin
>>
>> our .revieboardrc is as follows:
>>
>>  
>>
>>> REVIEWBOARD_URL = "http://reviews.addlive-vpn.com/";
>>> REPOSITORY = "Streaming-Core"
>>> BRANCH = "master"
>>> TARGET_GROUPS = "core"
>>> GUESS_FIELDS = True
>>> MARKDOWN = True
>>
>>
>> Thanks a lot for any guide.
>>
>> Regards,
>>
>> Ted
>>
>>
>>  
>>
>

-- 
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