On 2012-11-30 04:11, Krishnan Raghupathi wrote:
  I am using ReviewBoard version 1.6.1 and am facing a difficulty in
configuring this for our GIT repository. Our GIT repository is hosted on a
remote machine i.e different from the one hosting ReviewBoard. In the Add
repository of ReviewBoard, I selected the following options -

Hosting service - Custom
Repository type - Git

I left the Path and Mirror Path fields blank since the GIT repository is on
a remote machine and not accessible via a path.

Don't do that. The path and mirror path are used to determine what repository to use when posting a review. They can and should (mirror path especially, which exists ONLY for repository determination AFAIK) look like what users clone, e.g. 'git://server/path'.

Since I am able to access our GIT repository on a browser via cgit, I am
assuming that I need to specify the Raw file URL mask with a value similar
to http://git.gnome.org/browse/gtk+/plain/<filename>?id2=<revision> as
specified in the ReviewBoard documentation.

Correct. Keep in mind however that <revision> is the blob ID of the file to which a patch hunk applies, i.e. 'git show <revision>' should give you the contents of a file, not a commit or tree. You'll need to form your URL accordingly. (Your server also needs to support retrieving content by blob ID; some might not.)

I don't know cgit, so I can't give you any more information than that, but hopefully it helps.

Note: if you need to find blob ID's for experimenting, read up on git's 'ls-tree' command. (Short form: 'git ls-tree <branch/commit> <directory>' will give you the list of blobs (files) with their respective ID's in <directory> as of <branch/commit>.)


Want to help the Review Board project? Donate today at 
Happy user? Let us know at http://www.reviewboard.org/users/
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to