restore pull request fetching
This commit is contained in:
parent
37003f8f0c
commit
532fca43dd
|
@ -194,8 +194,8 @@ class PullRequest < ActiveRecord::Base
|
||||||
system 'git', 'reset', '--hard', "origin/#{to_ref}"
|
system 'git', 'reset', '--hard', "origin/#{to_ref}"
|
||||||
end
|
end
|
||||||
unless tags.include? from_ref
|
unless tags.include? from_ref
|
||||||
system 'git', 'checkout', from_branch
|
system 'git', 'branch', '-D', from_branch
|
||||||
system 'git', 'reset', '--hard', "#{head}/#{from_ref}"
|
system 'git', 'fetch', head, "+#{from_ref}:#{from_branch}"
|
||||||
system 'git', 'checkout', to_ref
|
system 'git', 'checkout', to_ref
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue