cfillion / reapack-index

Package indexer for git-based ReaPack repositories
GNU General Public License v3.0
28 stars 1 forks source link

Invalid urls generated for repository storages except for Github #12

Closed myrrc closed 4 months ago

myrrc commented 4 months ago

E.g. given remote

origin  git@git.sr.ht:~myrrc/reaper-scripts (fetch)
origin  git@git.sr.ht:~myrrc/reaper-scripts (push)

Reapack generates files with urls like

https://git.sr.ht/~myrrc/reaper-scripts/raw/a306455031a3fef28a96268f8d9bbe8cd52c9579/index.xml

but they should be

https://git.sr.ht/~myrrc/reaper-scripts/blob/a306455031a3fef28a96268f8d9bbe8cd52c9579/index.xml
cfillion commented 4 months ago

Pass --url-template 'https://git.sr.ht/~myrrc/reaper-scripts/blob/$commit/$path' to the command line or add to your .reapack-index.conf to customize the URL template. The default (auto) works with GitHub, GitLab, BitBucket etc which all use the same convention with '/raw/$commit/$path'.

myrrc commented 4 months ago

Ok, thanks