mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
exit accepts true and false [ci skip]
This commit is contained in:
parent
12074ad01c
commit
64bffddda1
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ update-github: fetch-github
|
|||
$(eval GITHUB_UPDATE_WORKTREE := $(shell mktemp -d "$(srcdir)/gh-$(PR)-XXXXXX"))
|
||||
git -C "$(srcdir)" worktree add $(notdir $(GITHUB_UPDATE_WORKTREE)) "gh-$(PR)"
|
||||
git -C "$(GITHUB_UPDATE_WORKTREE)" merge master --no-edit
|
||||
@$(BASERUBY) -e 'print "Are you sure to push this to PR=$(PR)? [Y/n]: "; exit(gets.chomp == "n" ? 1 : 0)'
|
||||
@$(BASERUBY) -e 'print "Are you sure to push this to PR=$(PR)? [Y/n]: "; exit(gets.chomp != "n")'
|
||||
git -C "$(srcdir)" remote add fork-$(PR) git@github.com:$(FORK_REPO).git
|
||||
git -C "$(GITHUB_UPDATE_WORKTREE)" push fork-$(PR) gh-$(PR):$(PR_BRANCH)
|
||||
git -C "$(srcdir)" remote rm fork-$(PR)
|
||||
|
|
Loading…
Reference in a new issue