aosp-merger: Do not force-fully rebasing
* I know what I'm doing, when I say merge, I want to merge, whether there's common ancestry or not! Change-Id: I75bd3818b93d33a878de53f5cdd38c138ba690c8
This commit is contained in:
@@ -100,11 +100,10 @@ for PROJECTPATH in ${PROJECTPATHS}; do
|
||||
# Determine whether OLDTAG is an ancestor of NEWTAG
|
||||
# ie is history consistent.
|
||||
git merge-base --is-ancestor "${OLDTAG}" "${NEWTAG}"
|
||||
# If no, force rebase.
|
||||
# If no, print a warning message.
|
||||
if [[ "$?" -eq 1 ]]; then
|
||||
echo -n "#### Project ${PROJECTPATH} old tag ${OLD} is not an ancestor "
|
||||
echo "of new tag ${NEWTAG}, forcing rebase ####"
|
||||
PROJECTOPERATION="rebase"
|
||||
echo -n "#### Warning: project ${PROJECTPATH} old tag ${OLDTAG} is not an ancestor "
|
||||
echo "of new tag ${NEWTAG} ####"
|
||||
fi
|
||||
|
||||
if [[ "${PROJECTOPERATION}" == "merge" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user