Skip to content

Commit 36eaa3a

Browse files
authored
revert
1 parent 3e88b5d commit 36eaa3a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/split_repo_migration/single-library.git-migrate-history.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ echo "Created working directory: ${WORKDIR}"
7070
pushd "${WORKDIR}" # cd into workdir
7171

7272
echo "Cloning source repository: ${SOURCE_REPO}"
73-
git clone --recurse-submodules --recurse-submodules "git@github.com:${SOURCE_REPO}.git" source-repo
73+
git clone --recurse-submodules "git@github.com:${SOURCE_REPO}.git" source-repo
7474

7575
pushd source-repo
7676

@@ -124,7 +124,7 @@ git filter-branch \
124124
--force \
125125
--prune-empty \
126126
--tree-filter \
127-
"git submodule update --init --recursive; find . -mindepth 2 -name .git -exec rm -rf {} +; git submodule update --init --recursive; find . -mindepth 2 -name .git -exec rm -rf {} +; shopt -s dotglob; mkdir -p ${WORKDIR}/migrated-source; mv * ${WORKDIR}/migrated-source; mkdir -p ${TARGET_PATH}; { mv ${WORKDIR}/migrated-source/* ${TARGET_PATH} || echo 'No files to move' ; }"
127+
"git submodule update --init --recursive; find . -mindepth 2 -name .git -exec rm -rf {} +; shopt -s dotglob; mkdir -p ${WORKDIR}/migrated-source; mv * ${WORKDIR}/migrated-source; mkdir -p ${TARGET_PATH}; { mv ${WORKDIR}/migrated-source/* ${TARGET_PATH} || echo 'No files to move' ; }"
128128

129129
# back to workdir
130130
popd
@@ -142,7 +142,7 @@ echo "Success"
142142
popd # back to workdir
143143

144144
# Do a diff between source code split repo and migrated code.
145-
git clone --recurse-submodules --recurse-submodules "git@github.com:${SOURCE_REPO}.git" source-repo-validation # Not ideal to clone again.
145+
git clone --recurse-submodules "git@github.com:${SOURCE_REPO}.git" source-repo-validation # Not ideal to clone again.
146146
find source-repo-validation -name .git -exec rm -rf {} + # That folder is not needed for validation.
147147

148148
DIFF_FILE="${WORKDIR}/diff.txt"

0 commit comments

Comments
 (0)