Skip to content

Commit ae174e2

Browse files
committed
update reset_workspace script
1 parent 0034088 commit ae174e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generate_patches/reset_workspace.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ function git_cleanup_submodule() {
1717
cd ..
1818
}
1919

20+
2021
# Reset the LoopWorkspace repository
22+
git checkout "${branch}"
2123
git clean -fd
2224
git fetch origin
2325
git reset --hard origin/$branch
2426
git submodule update --init --recursive --force
27+
git branch --format='%(refname:short)' | grep -v 'HEAD detached at' | grep -v "${branch}" | xargs -r git branch -D
2528

2629
# Clean up the repositories
2730
git_cleanup_submodule Loop $branch

0 commit comments

Comments
 (0)