Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit f9a0642

Browse files
authored
Fix failure if base and head branches have the same name (#77)
1 parent 9d21e09 commit f9a0642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ git fetch origin $BASE_BRANCH
9292
git fetch fork $HEAD_BRANCH
9393

9494
# do the rebase
95-
git checkout -b $HEAD_BRANCH fork/$HEAD_BRANCH
95+
git checkout -b fork/$HEAD_BRANCH fork/$HEAD_BRANCH
9696
git rebase origin/$BASE_BRANCH
9797

9898
# push back
99-
git push --force-with-lease fork $HEAD_BRANCH
99+
git push --force-with-lease fork fork/$HEAD_BRANCH:$HEAD_BRANCH

0 commit comments

Comments
 (0)