Skip to content

Commit

Permalink
Remove --rejoin flags
Browse files Browse the repository at this point in the history
In newer versions of Git, these arguments cannot be provided due to git/git@9a3e3ca.

Relevant comment:

> It could be argued that this change might break existing users.  I'd argue that those existing users are already broken, and they just don't know it.  Let them know that they're broken.
  • Loading branch information
Arvind Iyengar committed Jun 9, 2022
1 parent 0446dc0 commit e9aeb09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/rebase
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fi
# Pull the subdirectory staging branch into the main staging branch
echo "> Pulling in contents of ${SUB_DIRECTORY_BRANCH} as subtree in ${STAGING_BRANCH} rooted at ${DEST_DIRECTORY}..."
git checkout ${STAGING_BRANCH} 1>/dev/null 2>/dev/null
git subtree add -P ${DEST_DIRECTORY} ${SUB_DIRECTORY_BRANCH} --rejoin 1>/dev/null 2>/dev/null
git subtree add -P ${DEST_DIRECTORY} ${SUB_DIRECTORY_BRANCH} 1>/dev/null 2>/dev/null

# Generate user changes
PACKAGE=${PACKAGE} make prepare 1>/dev/null 2>/dev/null
Expand Down Expand Up @@ -234,7 +234,7 @@ for commit in ${COMMITS}; do
# Pull in changes from subdirectory branch
git checkout ${STAGING_BRANCH} 1>/dev/null 2>/dev/null
set +e
git subtree pull -P ${DEST_DIRECTORY} . ${SUB_DIRECTORY_BRANCH} --rejoin 1>/dev/null 2>/dev/null
git subtree pull -P ${DEST_DIRECTORY} . ${SUB_DIRECTORY_BRANCH} 1>/dev/null 2>/dev/null
if [ $? -ne 0 ]; then
# If the automatic merge has conflicts, reset the staged contents
git reset HEAD 1>/dev/null 2>/dev/null
Expand Down

0 comments on commit e9aeb09

Please sign in to comment.