You may have a partially installed scmbug and it left files in the hooks directory which make the tool think it's upgrading the install.
It's not finding the pre-commit file it expects and bails out...
So what should you do?
cd
rm -rf bin etc lib
Assuming that bin,etc, and lib directories only have the scmbug files in them.
Then try again to install the glue logic...