mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use rev-parse
Use simpler rev-parse to check if pull request was fetched.
This commit is contained in:
parent
b1ad628cdf
commit
2b3d84d584
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ define fetch-github
|
|||
git -C "$(srcdir)" remote add github $(GITHUB_RUBY_URL); \
|
||||
$(eval REMOTE_GITHUB_URL := $(GITHUB_RUBY_URL)) \
|
||||
)
|
||||
$(if $(git -C "$(srcdir)" log -1 --oneline "github/pull/$(1)/head" 2> /dev/null), \
|
||||
$(if $(git -C "$(srcdir)" rev-parse "github/pull/$(1)/head" -- 2> /dev/null), \
|
||||
git -C "$(srcdir)" branch -f "gh-$(1)" "github/pull/$(1)/head", \
|
||||
git -C "$(srcdir)" fetch -f github "pull/$(1)/head:gh-$(1)" \
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue