twpayne / chezmoi

Manage your dotfiles across multiple diverse machines, securely.

Home Page:https://www.chezmoi.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

forced update says "Already up to date."

k4lizen opened this issue · comments

Describe the bug

chezmoi update --force
Does the expected thing but outputs to the screen "Already up to date." even when that is not the case and it successfully updated files.

To reproduce

  1. Change any tracked file so it differs from the chezmoi repo
  2. chezmoi update --force

Expected behavior

It gave a correct message.

As per the documentation on chezmoi update, chezmoi update runs git pull ... in the source directory. The Already up to date message is coming from git, not chezmoi, and indicates that the source directory is up to date with respect to your dotfiles repo.