It is possible to get Review Board to work with a remote Git server, if the Git server also runs a web server. Write a CGI script that takes a repo name and SHA-1 checksum as parameters, chdir into the bare repo on the Git server, and run "git cat-file blob <SHA-1>" using a text/plain content type. Then configure the repo in Review Board with a "Raw file URL mask" set to invoke the CGI script, hard-coding the repo name and replacing "<revision>" with the SHA-1 checksum.
- If you drive fast enough, every traffic light turns green. Paul Sander Principal Member of Technical Staff, ScaleArc 2901 Tasman Dr., Santa Clara, CA 95054 paul.san...@scalearc.com<mailto:paul.san...@scalearc.com> From: "reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>" <reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>> Reply-To: "reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>" <reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>> Date: Saturday, February 14, 2015 at 2:01 AM To: "reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>" <reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>> Subject: Digest for reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com> - 16 updates in 3 topics -----Original Message----- From: Liam Reimers <liam.reim...@gmail.com<mailto:liam.reim...@gmail.com>> Reply: Liam Reimers <liam.reim...@gmail.com<mailto:liam.reim...@gmail.com>>> Date: February 13, 2015 at 1:22:57 PM To: reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com> <reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>>> Cc: liam.reim...@gmail.com<mailto:liam.reim...@gmail.com> <liam.reim...@gmail.com<mailto:liam.reim...@gmail.com>>>, christ...@beanbaginc.com<mailto:christ...@beanbaginc.com> <christ...@beanbaginc.com<mailto:christ...@beanbaginc.com>>> Subject: Re: The specified diff file could not be parsed. Liam Reimers <liam.reim...@gmail.com<mailto:liam.reim...@gmail.com>>: Feb 13 03:40PM -0800 > Ah, I just saw part of your error: "Not a git repository: 'None.'" > How is your repository configured in Review Board? Name - Repository Hosting - None (custom) Type - Git Path - git@server:path/repo.git However, note that the client can post a review request using one invocation (with HEAD~) and not the other, so it would seem that the repo is configured correctly? Christian Hammond <christ...@beanbaginc.com<mailto:christ...@beanbaginc.com>>: Feb 14 12:26AM -0800 Unfortunately, that configuration can't work, unless there's also a raw file URL field that's filled out. Git's protocol has no ability to fetch the kind of information we need remotely, including individual files. For Git, it's a requirement to either host the repository on the Review Board server (or through something like an NFS mount), or to use a service like GitWeb. GitWeb is the recommended route right now (though we're working on a service to help make all this easier). If the other changes were successfully posting, my guess is that they were introducing new files, which doesn't require communication with the repository. Otherwise, there's no way that the file verification could have worked with a remote Git path. Christian -- Christian Hammond - christ...@beanbaginc.com<mailto:christ...@beanbaginc.com> Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com -----Original Message----- From: Liam Reimers <liam.reim...@gmail.com<mailto:liam.reim...@gmail.com>> Reply: Liam Reimers <liam.reim...@gmail.com<mailto:liam.reim...@gmail.com>>> Date: February 13, 2015 at 3:40:54 PM To: reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com> <reviewboard@googlegroups.com<mailto:reviewboard@googlegroups.com>>> Cc: liam.reim...@gmail.com<mailto:liam.reim...@gmail.com> <liam.reim...@gmail.com<mailto:liam.reim...@gmail.com>>>, christ...@beanbaginc.com<mailto:christ...@beanbaginc.com> <christ...@beanbaginc.com<mailto:christ...@beanbaginc.com>>> Subject: Re: The specified diff file could not be parsed. Back to top You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/reviewboard/join>. To unsubscribe from this group and stop receiving emails from it send an email to reviewboard+unsubscr...@googlegroups.com<mailto:reviewboard+unsubscr...@googlegroups.com>. -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://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.