Skip to content

Commit b9ee060

Browse files
committed
configurable base branch, defaults to main
1 parent 80d83a6 commit b9ee060

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)