mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
github.event.pull_request.merge_commit_sha may be empty
This commit is contained in:
parent
63f6f87e86
commit
bf9cbdef12
@ -11,7 +11,7 @@ class Git
|
||||
|
||||
def initialize(oldrev, newrev, branch = nil)
|
||||
@oldrev = oldrev
|
||||
@newrev = newrev
|
||||
@newrev = newrev.empty? ? 'HEAD' : newrev
|
||||
@branch = branch
|
||||
|
||||
# GitHub may not fetch github.event.pull_request.base.sha at checkout
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user