Hi, The best way to link Review Board with Git is to first make sure you have Gitweb, cgit, or some other web-based Git repository viewer set up for your repository. Review Board can use these to access the contents of files in the repository, if you provide it with the raw file URL mask. We have examples in our admin documentation on how to configure with gitweb, cgit, and others.
The advantage this has over using a local clone is that you never have a problem with the clone being out of sync. Git is more tricky to configure than services like Subversion, because there's no way in the protocol to fetch one specific file's contents, given a path and revision. Hence the need for either a full clone (which is not the ideal way to go), or something like gitweb/cgit. Now, the Path should generally be what you'd use to clone the repository with. However, if you're using the local clone method for Git, Path will need to be the local filesystem path to that clone, and Mirror Path will be the typical clone path instead. So assuming the gitweb approach, you'd use your git://git.hq.net/Ops_Config. Once you've configured all this, you'll want to install RBTools on the developer machines and use post-review to post review requests. You'll also want to configure a .reviewboardrc file, and that should have: REVIEWBOARD_URL = 'http://reviewboard.yoursite.com/' REPOSITORY = '<repository name>' Where "<repository name>" is the Name field for the repository. Then the paths don't matter for lookup purposes. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Jan 11, 2013 at 12:56 PM, <gamb...@gmail.com> wrote: > I am so boggled by the GIT configuration for repositories. > If someone could clarify the actual steps and config examples I am sure I > can > hack it out. > > Centos 6, Reviewboard 1.7 from easy_install ReviewBoard > > > But here is the scenario. > > Master Repo is on a server with given name for instance, > > Hostname of git master repo: > git.hq.net > > I have setup Gitweb and this resolves properly as: > http://git.hq.net/Ops_Config.git > > Reviewboard is on another server: reviewboard.hq.net > > Clone command: git clone git://git.hq.net/Ops_Config > > Git remote show origin yields: > Fetch URL: git://git.hq.net/Ops_Config > Push URL: git://git.hq.net/Ops_Config > > Then i also cloned the repo locally, I saw someone say this had to be done > on the Reviewboard server so... > /var/www/reviewboard/git/Ops_config > > Ok now I want to understand how i derive the > > PATH > MIRROR PATH > MASK PATH > > I have tried many different combinations, can anyone suggest how this > logic all fits together > in the context of what ReviewBoard wants to see. > > Thanks in advance > I am on Skype too, @ vast.active > > -- > Want to help the Review Board project? Donate today at > http://www.reviewboard.org/donate/ > Happy user? Let us know at http://www.reviewboard.org/users/ > -~----------~----~----~----~------~----~------~--~--- > To unsubscribe from this group, send email to > reviewboard+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/reviewboard?hl=en > > > -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en