CYB-247, git 1.7.1 does not support rev-list --count so we use wc -l

deploy script can now run w/ git 1.7.1 and newer versions of git.