patch from markup for init-repository.sh