Spaces:
Runtime error
Runtime error
Update sync_data.sh
Browse files- sync_data.sh +1 -3
sync_data.sh
CHANGED
|
@@ -19,7 +19,7 @@ mkdir -p ./data ./github_data
|
|
| 19 |
|
| 20 |
# 克隆仓库
|
| 21 |
echo "正在克隆仓库……"
|
| 22 |
-
git clone "$REPO_URL" ./github_data || {
|
| 23 |
echo "克隆失败,请检查 G_NAME 和 G_TOKEN 是否正确。"
|
| 24 |
exit 1
|
| 25 |
}
|
|
@@ -36,10 +36,8 @@ sync_data() {
|
|
| 36 |
while true; do
|
| 37 |
# 1. 同步到 GitHub
|
| 38 |
echo "正在开始同步"
|
| 39 |
-
echo "当前工作目录: $(pwd)"
|
| 40 |
# 进入仓库目录
|
| 41 |
cd ./github_data
|
| 42 |
-
echo "进入后工作目录: $(pwd)"
|
| 43 |
# 配置 Git 用户信息
|
| 44 |
git config user.name "AutoSync Bot"
|
| 45 |
git config user.email "autosync@bot.com"
|
|
|
|
| 19 |
|
| 20 |
# 克隆仓库
|
| 21 |
echo "正在克隆仓库……"
|
| 22 |
+
git -c core.excludesFile=/dev/null -c core.attributesFile=/dev/null clone "$REPO_URL" ./github_data || {
|
| 23 |
echo "克隆失败,请检查 G_NAME 和 G_TOKEN 是否正确。"
|
| 24 |
exit 1
|
| 25 |
}
|
|
|
|
| 36 |
while true; do
|
| 37 |
# 1. 同步到 GitHub
|
| 38 |
echo "正在开始同步"
|
|
|
|
| 39 |
# 进入仓库目录
|
| 40 |
cd ./github_data
|
|
|
|
| 41 |
# 配置 Git 用户信息
|
| 42 |
git config user.name "AutoSync Bot"
|
| 43 |
git config user.email "autosync@bot.com"
|