Remove parameter --single-branch for git clone (it is unsupported in some versions of git)