Hi Patrick, Martin,
I just noticed that we seem to have dropped support for cgit on the coreboot Gerrit. I don't exactly remember how it worked, but I seem to have been able to get a link like https://review.coreboot.org/cgit/qc_blobs.git/plain/sc7180/qtiseclib/libqtis... some time last year. Now that just redirects to Gitiles.
The problem with Gitiles is it's impossible to just get a direct download link to a file -- you can only see source files in the browser view (with the Gitiles UI on the side), but you can't download the raw file exactly as it is in the repo. This is especially problematic for binary files where there is (as far as I can tell? Maybe I just can't find it...) no way to get their contents at all without downloading a whole tarball of a directory and extracting it (which is pretty cumbersome).
Do you guys know why this happened and is there any chance we could get cgit back?
Thanks, Julius
Hi Julius, Appending "?format=TEXT" to the file link in Gitiles (the "txt" link at the bottom of the page) will give a base64-encoded copy of the file.
Regards, Benjamin
Hi Julius, Appending "?format=TEXT" to the file link in Gitiles (the "txt" link at the bottom of the page) will give a base64-encoded copy of the file.
Yeah, I wish they just had a ?format=raw instead, I don't get why they don't implement the most obvious option. Seems like they're not really interested in doing that though (https://github.com/google/gitiles/issues/106).
gitiles#106 points to https://github.com/google/gitiles/issues/7 which outlines the concern of delivering arbitrary data from an authenticated domain.
I believe GitHub moved its "raw" output to a separate domain for the same reason, e.g. https://raw.githubusercontent.com/coreboot/coreboot/master/Makefile We could consider setting up a separate domain for that purpose and provide raw files there, but as an immediate workaround, all our repos are mirrored ~hourly to github.com/coreboot, too (and therefore are available through raw.githubusercontent.com)
Regards, Patrick
Am Fr., 28. Mai 2021 um 00:43 Uhr schrieb Julius Werner < jwerner@chromium.org>:
Hi Julius, Appending "?format=TEXT" to the file link in Gitiles (the "txt" link at
the bottom of the page) will give a base64-encoded copy of the file.
Yeah, I wish they just had a ?format=raw instead, I don't get why they don't implement the most obvious option. Seems like they're not really interested in doing that though (https://github.com/google/gitiles/issues/106). _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org
Patrick Georgi via coreboot wrote:
We could consider setting up a separate domain for that purpose and provide raw files there
I think that would be great..
but as an immediate workaround, all our repos are mirrored ~hourly to github.com/coreboot, too (and therefore are available through raw.githubusercontent.com)
..since it's not great to depend on github.com.
//Peter
but as an immediate workaround, all our repos are mirrored ~hourly to github.com/coreboot, too (and therefore are available through raw.githubusercontent.com)
Oh, perfect! At least for my purposes that's good enough. Thanks!
Julius,
why can't you use the gerrit 'download' button to either cherry pick the patch or pull the stack?
-vb
On Tue, May 25, 2021 at 5:14 PM Julius Werner jwerner@chromium.org wrote:
Hi Patrick, Martin,
I just noticed that we seem to have dropped support for cgit on the coreboot Gerrit. I don't exactly remember how it worked, but I seem to have been able to get a link like
https://review.coreboot.org/cgit/qc_blobs.git/plain/sc7180/qtiseclib/libqtis... some time last year. Now that just redirects to Gitiles.
The problem with Gitiles is it's impossible to just get a direct download link to a file -- you can only see source files in the browser view (with the Gitiles UI on the side), but you can't download the raw file exactly as it is in the repo. This is especially problematic for binary files where there is (as far as I can tell? Maybe I just can't find it...) no way to get their contents at all without downloading a whole tarball of a directory and extracting it (which is pretty cumbersome).
Do you guys know why this happened and is there any chance we could get cgit back?
Thanks, Julius _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org
why can't you use the gerrit 'download' button to either cherry pick the patch or pull the stack?
I want to download the raw file, not the Git patch. I want to be able to tell someone who needs this blob "just click this link to download it". Right now I have to say "click this link to download a tarball and then extract this file from it" which is a bit more annoying.