Skip to content
Snippets Groups Projects
Commit e25abf5b authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Use simple path for tmp ref, avoiding extra dir

So that we don't have to worry about cleaning empty
directories later. This was brought up at:

https://gitlab.com/gitlab-org/gitlab-ce/issues/38689#note_42242988
parent 6ba96149
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment