The raw file mask is essentially a format string, which the server uses to
create the URL to fetch blob content. It should explicitly have
"<filename>" and "<revision>" in it, not a specific file or revision.

So for your case, it should be "http://myserverurl/cgit/myrepo/blob/
<filename>?id=<revision>"

David

On Fri, Aug 9, 2024 at 6:06 AM Bagels1b <broc...@gmail.com> wrote:

> Can the Raw File URL Mask reference any file in the repository or should
> it be something specific?
>
> On Monday, August 5, 2024 at 1:12:50 PM UTC-4 Bagels1b wrote:
>
>> I'm trying to get my first ReviewBoard server (7.0.1) up and running but
>> I've run into a number of issues.  My RB is on Ubuntu 22.04 and I have a
>> remote server (Ubuntu 24.04) with a git mirror of my repo and cgit
>> installed.
>> My current issue is I can't Add a Repository.  My current error when I
>> "Save" is "A repository was not found. Please check the configuration to
>> make sure the details are correct and that it allows access using any
>> credentials you may have provided."
>> I can browse to cgit and look at repo's and commits so that seems to be
>> working properly.  I can git clone the information in the "Path" field from
>> a regular user.  It's of the form
>> g...@git-server-01.myserver.com/repo/myrepo.git
>> <http://g...@git-server-01.myserver.com/repo/myrepo.git>  I'm not sure
>> how to simulate that to mimic what the web interface might be doing.  I
>> added the public key from the "Add a Repository" to my git server
>> authorized_keys file.
>> I'm not confident in my Raw File URL Mask.  Can someone explain to me how
>> that should look?  I've been to the documentation and I'm basing mine on
>> the example
>>  "http://git.gnome.org/browse/gtk+/blob/<filename>?id=<revision>"
>> my cgit url is cgit/myrepo so I am replacing browse/gtk+ with that.  As
>> far as filename and revision I'm using the README file in the repo and I do
>> "git ls-tree HEAD README" to get the revision.  So I end up with this:
>> http://myserverurl/cgit/myrepo/blob/README?id=<sha1 from ls-tree
>> command>.  Does that seem correct?
>> Anything else that might cause my issues?
>> Thanks!
>>
>>
>> --
> 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
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/ba64cec5-a2bd-48c3-bf4a-4293f17be072n%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/ba64cec5-a2bd-48c3-bf4a-4293f17be072n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAFS3VNVAz-RF7WTs49zYYh-WGk_%2B02CmMVtUZnehMNyLM%3D_99w%40mail.gmail.com.

Reply via email to