anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️
MIT License
6.9k stars 287 forks source link

fatal: not a git repository: #329

Closed InvisibleRasta closed 1 year ago

InvisibleRasta commented 1 year ago
./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
anishathalye commented 1 year ago

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
InvisibleRasta commented 1 year ago

Recloning the repo fixed the problem

anishathalye commented 1 year ago

Excellent, glad you got it working!