From 9fdd0accb8153f0336ebd1d11b1741adba96ec89 Mon Sep 17 00:00:00 2001 From: bingshuo <565183519@qq.com> Date: Wed, 27 May 2026 16:44:13 +0800 Subject: [PATCH] =?UTF-8?q?isomorphic-git=E5=AE=9E=E9=AA=8C=EF=BC=9A?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=88=9D=E5=A7=8B=E5=8C=96=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../experiments/isomorphic-git-poc/setup.sh | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/experiments/isomorphic-git-poc/setup.sh diff --git a/scripts/experiments/isomorphic-git-poc/setup.sh b/scripts/experiments/isomorphic-git-poc/setup.sh new file mode 100644 index 0000000..797a46b --- /dev/null +++ b/scripts/experiments/isomorphic-git-poc/setup.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# isomorphic-git 实验环境初始化 +# 在 /data/guanghulab/repo 下执行 + +cd /data/guanghulab/repo + +# 安装 isomorphic-git +if [ -d node_modules/isomorphic-git ]; then + echo "[OK] isomorphic-git already installed" +else + echo "[INSTALL] isomorphic-git..." + npm install isomorphic-git 2>&1 | tail -3 +fi + +# 确认 .git 目录 +if [ -d .git ]; then + echo "[OK] Git repo: $(pwd)" +else + echo "[FAIL] .git not found" + exit 1 +fi +echo "SETUP_DONE"