Skip to content

Commit 22b0db2

Browse files
committed
Protecting refs during rebase
1 parent 3983f3d commit 22b0db2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-split-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ done
9898

9999
echo -e "👷‍♂️ Rebasing '${CURRENT_BRANCH}' onto the temporary branch\n"
100100
git_silent checkout "${CURRENT_BRANCH}"
101-
git_silent rebase "${TEMP_BRANCH}"
101+
git_silent rebase --no-update-refs "${TEMP_BRANCH}"
102102

103103
echo -e "🔥 Removing the temporary branch: ${TEMP_BRANCH}\n"
104104
git_silent branch -D "${TEMP_BRANCH}"

0 commit comments

Comments
 (0)