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)

Most upvoted comments

@oranja I am in Ubuntu shell on Windows 10 and my git version is git version 2.13.0

  1. Uninstalled fish and omf, and deleted manually /home/user/.local/share/omf
  2. Reinstalled fish with PPA
  3. fish --version returns fish, version 2.6.0
  4. git config --global core.autocrlf false
  5. mkdir code && chmod 644 code/
  6. cd code
  7. git clone https://github.com/oh-my-fish/oh-my-fish.git
  8. cd oh-my-fish/bin/install --offline
  9. PROFIT: Got my omf working!

I think step.4 solved my problem.

I need core.autocrlf set to true, 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 .gitattributes on the oh-my-fish repo, but not the packages-main repo. So since core.autocrlf was enabled, all occurrences of \n get 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 named default with type = theme, but all it found is default with type = theme\r (notice the \r) and assumes the word default must be a URL and not a package name. So then it tells Git to clone default, which of course fails.

The fix is to add a .gitattributes file to the packages-main repo also. I’ll do that now.