DrDynamic / dotbot-git

4 stars 3 forks source link

Clone-or-pull failing to pull #3

Open trentjmorris opened 2 years ago

trentjmorris commented 2 years ago

Snippet of my install.config.yaml:

- git:
  '$HOME/.dotfiles/zsh/plugins/alias-tips':
      url: https://github.com/djui/alias-tips.git
      method: clone-or-pull
      description: Alias tips

On first run ./install --only git it clones as expected.

On subsequent runs:

$ ./install --only git
Skipping action defaults
Skipping action clean
Skipping action link
Skipping action shell
fatal: destination path '/home/trent/.dotfiles/zsh/plugins/alias-tips' already 
exists and is not an empty directory.
git command failed...
Cloned Alias tips

==> Some tasks were not executed successfully

I've experimented setting the method to pull and weirdly the plugin thinks the repo doesn't exist:

$ ./install --only git
Skipping action defaults
Skipping action clean
Skipping action link
Skipping action shell
Repository doesn't exist! Woun't pull Alias tips

==> All tasks executed successfully

OS: Ubuntu 20.04 (LTS) x64 Git: 2.25.1

Really appreciate your work on this plugin. Hoping I can get it to work for me.

adoyle-h commented 1 month ago

Same issue with latest version.