RichiH/vcsh — Issue #5: make `vcsh clone` behavior/warnings more clear
Author: Dieterbe
Created: 2011-11-16 11:03:58+00:00
State: open

If i `vcsh clone git://github.com/RichiH/vcsh_mr_template.git` and the files already exist, it complains about that, so i remove the files and try again. then it says:
```
vcsh: fatal: /home/dieter/.config/vcsh/repo.d/vcsh_mr_template.git exists
fatal: remote origin already exists.
```
so i remove /home/dieter/.config/vcsh/repo.d/vcsh_mr_template.git and try again.
then it complains again that the files in ~ already exist

Solutions?

* maybe vcsh clone could be more atomic?: only really install the git repo once all prerequisites are met (repo does not exist yet, no file conflicts, ..)
i would suggest to first clone in $XDG_DATA_HOME/vcsh/repo.d/, check all conditions, then move repo to $XDG_CONFIG_HOME/vcsh/repo.d/

* and/or use more clear warning messages: A user should probably never try to re-clone (instead pull)
it should be clear what worked and what didn't (i.e. the clone worked, but not putting files in place? although i would guess these operations are very closely related, hence the point above seems sensible to me)