Commit 4b3c18ce authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use branch_name to find the branch rather than ref

parent e7617303
...@@ -858,9 +858,9 @@ class Repository ...@@ -858,9 +858,9 @@ class Repository
GitOperationService.new(user, self).with_branch( GitOperationService.new(user, self).with_branch(
branch, branch,
source_branch: source_branch, source_branch: source_branch,
source_project: source_project) do |ref| source_project: source_project) do
index = rugged.index index = rugged.index
branch_commit = find_branch(ref) branch_commit = find_branch(branch)
parents = if branch_commit parents = if branch_commit
last_commit = branch_commit.dereferenced_target last_commit = branch_commit.dereferenced_target
......
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