zinit icon indicating copy to clipboard operation
zinit copied to clipboard

[maint]: GitHub no longer supports using svn with paths like /trunk/.

Open phucisstupid opened this issue 10 months ago • 2 comments

Summary

use another alternative

Proposed fix

No response

phucisstupid avatar Feb 18 '25 17:02 phucisstupid

Yep, here is the error I have faced for reference when I try to use gitfast as described,

Setting up snippet: OMZP::gitfast
==> Downloading OMZP::gitfast (with Subversion)
svn: E170013: Unable to connect to a repository at URL 'https://github.com/ohmyzsh/ohmyzsh/trunk/plugins/gitfast'
svn: E160013: '/ohmyzsh/ohmyzsh/trunk/plugins/gitfast' path not found

For now I just manually download them,

cd ~/.local/share/zinit/snippets/OMZP::gitfast
git clone https://github.com/ohmyzsh/ohmyzsh/
cp -r ohmyzsh/plugins/gitfast/* .
rm -rf ohmyzsh

Dogacel avatar Mar 14 '25 15:03 Dogacel

Here is my working solution within the confies of zinit on macos at least.

Thanks @vladdoster for the idea though :)

zinit proto'ssh' \
  cloneopts'--no-checkout --filter=blob:none' \
  atclone'git sparse-checkout init --cone; git sparse-checkout set plugins/{per-directory-history,gitfast}/; git checkout' \
  nocompile \
  atpull'%atclone' \
  atload'' \
  multisrc'plugins/gitfast/gitfast.plugin.zsh plugins/per-directory-history/per-directory-history.zsh' \
    for ohmyzsh/ohmyzsh

I do think something simpler like this could be added, but more work will need to be done to figure out the various use cases. I haven't tested what happens when you do this with 2 separate zinit load paths. I assume one would overwrite the other.

bicole avatar Sep 04 '25 16:09 bicole