Based on this, you should set the raw file URL mask to:
http://192.168.122.26/gitweb?p=common.git;a=blob_plain;f=<filename>;h=<revision
>

-David

On Wed, Jun 28, 2017 at 4:56 AM Kumari Shweta <[email protected]> wrote:

>
> URL:
> http://192.168.122.26/gitweb?p=common.git;a=blob_plain;f=file;h=98b86198ea3ab4ff766bc5c07e2bb60455575139
> <http://www.google.com/url?q=http%3A%2F%2F192.168.122.26%2Fgitweb%3Fp%3Dcommon.git%3Ba%3Dblob_plain%3Bf%3Dfile%3Bh%3D98b86198ea3ab4ff766bc5c07e2bb60455575139&sa=D&sntz=1&usg=AFQjCNEAn__IuAKV-8Q00KzDHJvdIebMCA>
> i can see file details....
> if i use https, error is site cannot be reached...
>
> On Sunday, 25 June 2017 07:07:10 UTC+5:30, David Trowbridge wrote:
>
>> If you load that URL in a browser what happens? Is it trying to redirect
>> to somewhere? Do you need to use https instead of http?
>>
>> -David
>>
> On Fri, Jun 16, 2017 at 5:23 AM Kumari Shweta <[email protected]> wrote:
>>
>>> Hi David,
>>> i have tried with a=blob_plain also but got same error. i am new for git
>>> as well. i am using gerrit gitweb. will it work or i have to setup new
>>> gitweb?
>>>
>>> path:http://192.168.122.26/p/common.git
>>> Mirror path:ssh://[email protected]:29418/common
>>> Raw File URL Mask:
>>> http://192.168.122.26/gitweb?p=common.git;a=blob_plain;f=
>>> <filename>;h=<revision>
>>>
>>> Error:
>>> HTTP error code 302 when fetching file from
>>> http://192.168.122.26/gitweb?p=common.git;a=blob_plain;f=file;h=98b86198ea3ab4ff766bc5c07e2bb60455575139
>>> <http://www.google.com/url?q=http%3A%2F%2F192.168.122.26%2Fgitweb%3Fp%3Dcommon.git%3Ba%3Dblob_plain%3Bf%3Dfile%3Bh%3D98b86198ea3ab4ff766bc5c07e2bb60455575139&sa=D&sntz=1&usg=AFQjCNEAn__IuAKV-8Q00KzDHJvdIebMCA>:
>>> HTTP Error 302: The HTTP server returned a redirect error that would lead
>>> to an infinite loop.
>>> The last 30x error message was:
>>> Found
>>>
>>>     This may be a bug in the software, a temporary outage, or an issue
>>>      with the format of your diff.
>>>
>>> Shweta
>>> On Friday, 16 June 2017 11:54:53 UTC+5:30, David Trowbridge wrote:
>>>
>>>> It looks like you have a=tree in the raw file URL, where it should be
>>>> a=blob_plain
>>>>
>>>> -David
>>>>
>>>> On Wed, Jun 14, 2017 at 10:24 PM Kumari Shweta <[email protected]>
>>>> wrote:
>>>>
>>> Hi David,
>>>>> REPOSITORY HOSTING
>>>>> Hosting service:
>>>>>
>>>>> REPOSITORY INFORMATION
>>>>> Repository type:
>>>>> Path:
>>>>> http://192.168.122.26/p/common.git
>>>>> For local Git repositories, this should be the path to a .git
>>>>> directory that Review Board can read from. For remote Git repositories, it
>>>>> should be the clone URL.
>>>>> Mirror path:
>>>>> ssh://[email protected]:29418/common.git
>>>>> Raw file URL mask:
>>>>> http://192.168.122.26/?p=review-site/git/common.git;a=tree;f=
>>>>> <filename>;h=<revision>
>>>>>
>>>>>
>>>>> Regards,
>>>>> Shweta
>>>>>
>>>>> On Wednesday, 14 June 2017 20:35:28 UTC+5:30, Kumari Shweta wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I have configured reviewboard with Git(cgit and gitweb). with local
>>>>>> repository, it works fine but with cgit and gitweb it throws same error.
>>>>>> rbt diff -d does not show any error, but when i run rbt post, diff
>>>>>> link is generated but diff result is not shown there on reviewboard UI.
>>>>>>
>>>>>> Error displays there is:
>>>>>> There was an error displaying this diff.
>>>>>>    The patch to 'file' didn't apply cleanly. The temporary files have
>>>>>> been left in '/tmp/reviewboard.DCJIXt' for debugging purposes.
>>>>>> `patch` returned:
>>>>>>
>>>>>>      This may be a bug in the software, a temporary outage, or an
>>>>>> issue
>>>>>>      with the format of your diff.
>>>>>>     Please try again, and if you still have trouble,
>>>>>>      contact support.
>>>>>>
>>>>>> i am using following versions:
>>>>>> RBTools 0.7.9
>>>>>> reviewboard: 2.5.10
>>>>>> git version  2.7.4
>>>>>>
>>>>>> Please help me for this issue.
>>>>>>
>>>>>> Regards,
>>>>>> Shweta
>>>>>>
>>>>> --
>>>>> 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 [email protected].
>>>>
>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to