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 'lib/gitlab/git/cross_repo_comparer.rb')
-rw-r--r--lib/gitlab/git/cross_repo_comparer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/cross_repo_comparer.rb b/lib/gitlab/git/cross_repo_comparer.rb
index 3958373f7cb..d42b2a3bd98 100644
--- a/lib/gitlab/git/cross_repo_comparer.rb
+++ b/lib/gitlab/git/cross_repo_comparer.rb
@@ -45,7 +45,7 @@ module Gitlab
# name that will be deleted once the method completes. This is a no-op if
# fetching the source branch fails
def with_commit_in_source_tmp(commit_id, &blk)
- tmp_ref = "refs/tmp/#{SecureRandom.hex}"
+ tmp_ref = "refs/#{::Repository::REF_TMP}/#{SecureRandom.hex}"
yield commit_id if source_repo.fetch_source_branch!(target_repo, commit_id, tmp_ref)
ensure