Skip to content

Commit 866ae5e

Browse files
committed
configurable base branch, defaults to main
1 parent 82e8eef commit 866ae5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

monorepo-migration/migrate.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ echo "Starting migration using git read-tree with isolated clones..."
6565
# 0. Create working directory
6666
mkdir -p "$WORKING_DIR"
6767

68-
MIGRATION_HEAD_BRANCH="add-migration-script"
68+
MIGRATION_HEAD_BRANCH="${MIGRATION_HEAD_BRANCH:-main}"
69+
echo "Basing migration branch on: ${MIGRATION_HEAD_BRANCH}"
6970

7071
# 1. Clone the source repository
7172
if [ ! -d "$SOURCE_DIR" ]; then

0 commit comments

Comments
 (0)