Merge pull request #12226 from XuehaiPan/tap-fix

tap: fix unexpected wrong variable name
This commit is contained in:
Mike McQuaid 2021-10-12 15:29:12 +01:00 committed by GitHub
commit 20d1c821f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,7 +384,7 @@ class Tap
path.git_origin_set_head_auto
new_upstream_head = path.git_origin_branch
return if new_upstream_head == old_upstream_head
return if new_upstream_head == current_upstream_head
path.git_rename_branch old: current_upstream_head, new: new_upstream_head
path.git_branch_set_upstream local: new_upstream_head, origin: new_upstream_head