From f17b3442402529281bdca9b2f70697e04bcfe216 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Wed, 8 Jul 2015 11:40:45 -0700 Subject: [PATCH] Fix git clone for locally running tests Zuul-cloner's behavior is to clone the repository into a subdirectory under a directory named for the repo namespace. Git's default behavior is to just clone it directly into the present working directory. This patch adds an argument to the git clone command to clone it into the / directory, so that whether zuul-cloner or git is used the repo ends up in the same directory relative to the PWD. Change-Id: I8fd7ab1637fdc77cad69b37e9c063997a2a3287d --- spec/spec_helper_acceptance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 6aa9a35..429e807 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -38,7 +38,7 @@ RSpec.configure do |c| zuul_clone_cmd += "git://git.openstack.org #{repo}" on host, zuul_clone_cmd else - on host, "git clone https://git.openstack.org/#{repo}" + on host, "git clone https://git.openstack.org/#{repo} #{repo}" end on host, "ZUUL_REF=#{zuul_ref} ZUUL_BRANCH=#{zuul_branch} ZUUL_URL=#{zuul_url} bash #{repo}/install_modules.sh" -- 2.45.2