Please put this into the ```else``` block of ```if node[:nova][:use_gitrepo]``` as it's only required unless use_gitrepo.