From: Antonio Ospite Date: Thu, 13 Dec 2018 23:15:05 +0000 (+0100) Subject: hooks-available: avoid some errors with empty repositories X-Git-Url: https://git.ao2.it/config/vcsh.git/commitdiff_plain/8bdae58f5b9906d57e5d4384e5fda1b93cef6aac?hp=8bdae58f5b9906d57e5d4384e5fda1b93cef6aac hooks-available: avoid some errors with empty repositories When entering a repository which has just been created the HEAD reference does not exist yet and "git read-tree -mu HEAD" would complain loudly about that, giving a confusing error to users. Avoid the error by checking the validity of HEAD before updating the working tree. ---