Commit 5506b77c authored by Sean McGivern's avatar Sean McGivern

Merge branch 'use-simple-tmp-ref-path' into 'master'

Use simple path for tmp ref, avoiding extra directory

See merge request gitlab-org/gitlab-ce!14698
parents fc292ca0 e25abf5b
......@@ -990,7 +990,7 @@ module Gitlab
tmp_ref = fetch_ref(
start_repository,
source_ref: "#{Gitlab::Git::BRANCH_REF_PREFIX}#{start_branch_name}",
target_ref: "refs/tmp/#{SecureRandom.hex}/head"
target_ref: "refs/tmp/#{SecureRandom.hex}"
)
yield commit(sha)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment