Fix execution order to ensure git is installed before repo is created