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

Use branch_name to find the branch rather than ref

parent e7617303
No related branches found
No related tags found
1 merge request!7237Don't execute git hooks if you create branch as part of other change
Pipeline #
Loading
Loading
@@ -858,9 +858,9 @@ class Repository
GitOperationService.new(user, self).with_branch(
branch,
source_branch: source_branch,
source_project: source_project) do |ref|
source_project: source_project) do
index = rugged.index
branch_commit = find_branch(ref)
branch_commit = find_branch(branch)
 
parents = if branch_commit
last_commit = branch_commit.dereferenced_target
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