summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-11-03 17:10:38 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-11-03 17:11:09 -0500
commitd09d62b6b875102b7a334fcf9e689537e1f25013 (patch)
tree4b6714fa07b8d4975131e68a9a293425ed85f665 /spec/requests
parent312375ac7c7d6619740899cd185a8dde1d653955 (diff)
downloadgitlab-ce-d09d62b6b875102b7a334fcf9e689537e1f25013.tar.gz
Replace all usages of `git` command with configurable binary pathrs-git-bin-path
Closes #3311
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/repositories_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/repositories_spec.rb b/spec/requests/api/repositories_spec.rb
index 1149f7e7989..faf6b77a462 100644
--- a/spec/requests/api/repositories_spec.rb
+++ b/spec/requests/api/repositories_spec.rb
@@ -36,8 +36,8 @@ describe API::API, api: true do
it 'should create a new annotated tag' do
# Identity must be set in .gitconfig to create annotated tag.
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}))
+ system(*%W(#{Gitlab.config.git.bin_path} --git-dir=#{repo_path} config user.name #{user.name}))
+ system(*%W(#{Gitlab.config.git.bin_path} --git-dir=#{repo_path} config user.email #{user.email}))
post api("/projects/#{project.id}/repository/tags", user),
tag_name: 'v7.1.0',