summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-06 10:57:05 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-06 10:57:05 +0200
commit0ce1826b44b4194b116f0a1875cbb891f6ca192d (patch)
treee6efd06a0fb92f936fb1931b0c51c1ba3b581bcd /spec
parent6d60762793f79bfb07cc15e78ef6cc53dca6be48 (diff)
parente4a38e447169069f3d5042d3341ceb4bdc51bf1b (diff)
downloadgitlab-ce-0ce1826b44b4194b116f0a1875cbb891f6ca192d.tar.gz
Merge pull request #8258 from cirosantilli/factor-repo-path
Factor using Repository#path_to_repo
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/repositories_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/requests/api/repositories_spec.rb b/spec/requests/api/repositories_spec.rb
index dd7a0fc6cc8..beae71c02d9 100644
--- a/spec/requests/api/repositories_spec.rb
+++ b/spec/requests/api/repositories_spec.rb
@@ -37,8 +37,7 @@ describe API::API, api: true do
context 'annotated tag' do
it 'should create a new annotated tag' do
# Identity must be set in .gitconfig to create annotated tag.
- repo_path = File.join(Gitlab.config.gitlab_shell.repos_path,
- project.path_with_namespace + '.git')
+ repo_path = project.repository.path_to_repo
system(*%W(git --git-dir=#{repo_path} config user.name #{user.name}))
system(*%W(git --git-dir=#{repo_path} config user.email #{user.email}))