summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2017-12-19 17:06:38 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2018-01-03 16:13:32 -0200
commit9d575acc5b46be7e0b76ccc763997412cd278ef0 (patch)
treefdaad89c001244ce24f7c68a7f4185e9d2b8af13 /spec/support
parent603fcb6b9ca0aec1a5f8d75fa16d626dd8058269 (diff)
downloadgitlab-ce-9d575acc5b46be7e0b76ccc763997412cd278ef0.tar.gz
Fix TestEnv.copy_repo to use disk_path instead of full_path
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/test_env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb
index ffc051a3fff..1d99746b09f 100644
--- a/spec/support/test_env.rb
+++ b/spec/support/test_env.rb
@@ -215,7 +215,7 @@ module TestEnv
end
def copy_repo(project, bare_repo:, refs:)
- target_repo_path = File.expand_path(project.repository_storage_path + "/#{project.full_path}.git")
+ target_repo_path = File.expand_path(project.repository_storage_path + "/#{project.disk_path}.git")
FileUtils.mkdir_p(target_repo_path)
FileUtils.cp_r("#{File.expand_path(bare_repo)}/.", target_repo_path)
FileUtils.chmod_R 0755, target_repo_path