Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/git_helpers.rb')
-rw-r--r--spec/support/helpers/git_helpers.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/support/helpers/git_helpers.rb b/spec/support/helpers/git_helpers.rb
index 05e31a1154a..99c5871ba54 100644
--- a/spec/support/helpers/git_helpers.rb
+++ b/spec/support/helpers/git_helpers.rb
@@ -2,11 +2,8 @@
module GitHelpers
def rugged_repo(repository)
- rugged_repo_at_path(repository.disk_path + '.git')
- end
+ path = File.join(TestEnv.repos_path, repository.disk_path + '.git')
- def rugged_repo_at_path(relative_path)
- path = File.join(TestEnv.repos_path, relative_path)
Rugged::Repository.new(path)
end
end