mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Make working tree under the source directory
This commit is contained in:
parent
09ce223b0b
commit
116f91ab50
1 changed files with 3 additions and 3 deletions
|
@ -172,10 +172,10 @@ fetch-github:
|
|||
merge-github: fetch-github
|
||||
$(eval GITHUB_MERGE_BASE := $(shell git -C "$(srcdir)" log -1 --format=format:%H))
|
||||
$(eval GITHUB_MERGE_BRANCH := $(shell git -C "$(srcdir)" symbolic-ref --short HEAD))
|
||||
$(eval GITHUB_MERGE_WORKTREE := $(shell mktemp -d gh-$(PR)-XXXXXX))
|
||||
git -C "$(srcdir)" worktree add $(GITHUB_MERGE_WORKTREE) "gh-$(PR)"
|
||||
$(eval GITHUB_MERGE_WORKTREE := $(shell mktemp -p "$(srcdir)" -d gh-$(PR)-XXXXXX))
|
||||
git -C "$(srcdir)" worktree add $(notdir $(GITHUB_MERGE_WORKTREE)) "gh-$(PR)"
|
||||
git -C "$(GITHUB_MERGE_WORKTREE)" rebase $(GITHUB_MERGE_BRANCH)
|
||||
git -C "$(srcdir)" worktree remove "$(GITHUB_MERGE_WORKTREE)"
|
||||
git -C "$(srcdir)" worktree remove $(notdir $(GITHUB_MERGE_WORKTREE))
|
||||
git -C "$(srcdir)" merge --ff-only "gh-$(PR)"
|
||||
git -C "$(srcdir)" branch -D "gh-$(PR)"
|
||||
git -C "$(srcdir)" filter-branch -f \
|
||||
|
|
Loading…
Add table
Reference in a new issue