populate-fully.sh: don't do anything if the repository does not exist
authorAntonio Ospite <ao2@ao2.it>
Thu, 13 Dec 2018 22:47:47 +0000 (23:47 +0100)
committerAntonio Ospite <ao2@ao2.it>
Thu, 13 Dec 2018 22:47:47 +0000 (23:47 +0100)
commitc6461aa97fe3711c2055721aa37d8b0d19579f49
treeea26a07a159c541ae3543e0b605b9b977ac3ffd1
parent20cf74a268166d49d162f61a4174e19016763dcb
populate-fully.sh: don't do anything if the repository does not exist

The pre-enter hook is called even when trying to enter an invalid
repository, vcsh only checks the repository validity later on.

Anticipate the check and avoid calling git commands on an invalid
repository as they would just fail and confuse the user.
.config/vcsh/hooks-available/populate-fully.sh