Add git to optional dependencies
Description:
Refer to the official documentation Using chezmoi across multiple machines for guidance.
When attempting to clone dotfiles using chezmoi via SSH with the command:
chezmoi init git@github.com:$GITHUB_USERNAME/dotfiles.git
We may encounter the following error message:
builtin git does not support cloning repos over ssh, please install git
To resolve this issue, we should install the git package from the Arch repository.
Evidently, the git package is an essential requirement for chezmoi to successfully clone dotfiles via SSH.
Considering this, adding it to the optional dependencies is a prudent and advisable choice.
Additional info:
- package version(s): 2.61.0-1
- config and/or log files: null
- link to upstream bug report, if any: null
Steps to reproduce:
- run chezmoi init via SSH without git installed.
- chezmoi exits, printing a message 'builtin git does not support cloning repos over ssh, please install git'.
- install git to fix it.