summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorteru <teru@kteru.net>2016-11-10 13:59:17 +0900
committerteru <teru@kteru.net>2016-11-10 13:59:17 +0900
commit11deb3f1a16f426d77106a8b7efaf24eca292d76 (patch)
treea824597c2a82d9e39cb7554e6464e96b5f96520c
parent0c99e5d0b6b457ef7db2c36f1394fad5c63d1142 (diff)
downloadgitlab-ce-11deb3f1a16f426d77106a8b7efaf24eca292d76.tar.gz
Use config param in `Repository#update_ref!`
-rw-r--r--app/models/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index 7d06ce1e85b..6c93ba1e912 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -239,7 +239,7 @@ class Repository
# offer 'compare and swap' ref updates. Without compare-and-swap we can
# (and have!) accidentally reset the ref to an earlier state, clobbering
# commits. See also https://github.com/libgit2/libgit2/issues/1534.
- command = %w[git update-ref --stdin -z]
+ command = %W(#{Gitlab.config.git.bin_path} update-ref --stdin -z)
_, status = Gitlab::Popen.popen(command, path_to_repo) do |stdin|
stdin.write("update #{name}\x00#{newrev}\x00#{oldrev}\x00")
end