Clone Or Reuse Existing Repo
Goal
Establish which OpenMAIC checkout will be used for setup and runtime actions.
Procedure
- Check whether OpenMAIC already exists locally.
- If a checkout exists, show the path and ask whether to reuse it.
- If no checkout exists, propose cloning the repo and ask for confirmation.
- After clone, confirm dependency installation separately.
Recommended Path
- Recommended: reuse an existing checkout if it is already on the target branch.
- Otherwise: clone a fresh checkout from GitHub, then install dependencies.
Commands
Clone:
git clone https://github.com/THU-MAIC/OpenMAIC.git
cd OpenMAIC
Install dependencies:
pnpm install
Confirmation Requirements
- Ask before
git clone.
- Ask before
pnpm install.
- If the repo is dirty, tell the user and ask whether to continue with that checkout.