oh-my-fish: repository 'default' does not exist
I cannot get around this error:
Setting up Oh My Fish configuration...
Installing package default
fatal: repository 'default' does not exist
Could not install package default. 1^
fish: Unknown command '2'
~/.local/share/omf/pkg/omf/functions/packages/omf.packages.install.fish (line 1): echo (omf::err)"Could not install $argv."(omf::off) 1^&2
^
in function '__omf.packages.install.error'
called on line 49 of file ~/.local/share/omf/pkg/omf/functions/packages/omf.packages.install.fish
with parameter list 'package default'
in function 'omf.packages.install'
called on line 22 of file ~/.local/share/omf/pkg/omf/functions/bundle/omf.bundle.install.fish
with parameter list 'default'
in function 'omf.bundle.install'
called on line 6 of file ~/.local/share/omf/pkg/omf/functions/cli/omf.cli.install.fish
in function 'omf.cli.install'
called on line 47 of file ~/.local/share/omf/pkg/omf/functions/omf.fish
in function 'omf'
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (10 by maintainers)
@oranja I am in Ubuntu shell on Windows 10 and my git version is
git version 2.13.0/home/user/.local/share/omffish --versionreturnsfish, version 2.6.0git config --global core.autocrlf falsemkdir code && chmod 644 code/cd codegit clone https://github.com/oh-my-fish/oh-my-fish.gitcd oh-my-fish/bin/install --offlineomfworking!I think step.4 solved my problem.
I need
core.autocrlfset totrue, because rest of the team is on UNIX systems. Let’s see how it will work for me. I will keep you updated on my experience. Thank you for your help. I 💚 omf@odGit @oranja Oh!!! It all makes sense now!
We have a
.gitattributeson the oh-my-fish repo, but not the packages-main repo. So sincecore.autocrlfwas enabled, all occurrences of\nget turned into\r\n.Then, when the installer installs the default plugins, it tries to install the theme named
default. So it looks up a package nameddefaultwithtype = theme, but all it found isdefaultwithtype = theme\r(notice the \r) and assumes the worddefaultmust be a URL and not a package name. So then it tells Git to clonedefault, which of course fails.The fix is to add a
.gitattributesfile to the packages-main repo also. I’ll do that now.