anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fatal: not a git repository:

InvisibleRasta opened this issue · comments

./install
fatal: not a git repository: /home/asd/.dotfiles/dotbot/../.git/modules/dotbot 

I been getting this error lately and i am not sure why.


# install.conf.yaml
- defaults:
    link:
      relink: true

- clean: ['~']

- link:
    ~/.vimrc: vimrc
    ~/.vim_runtime: vim_runtime
    ~/.zshrc: zshrc
    ~/.nanorc: nanorc
    ~/.config/awesome: config/awesome
    ~/.local/bin: local/bin
    ~/.config/nvim: config/nvim
    ~/.config/ranger: config/ranger
    ~/.config/alacritty: config/alacritty
    ~/.config/geany: config/geany
    ~/.config/zsh: config/zsh
    ~/.gitfiles: gitconfig
ls .dotfiles/
.git    dotbot  vim_runtime  gitconfig         install            nanorc     upload_github.sh  zshrc
config  local   .gitmodules  init_dotfiles.sh  install.conf.yaml  README.md  vimrc

Your config is not relevant here, it is failing before it gets to the point where Dotbot runs. Have you moved any files around recently?

Can you share the output of the following commands:

$ ls .git/modules/dotbot
$ git -C /home/asd/.dotfiles/dotbot status
$ cat .gitmodules

Recloning the repo fixed the problem

Excellent, glad you got it working!