This commit is contained in:
@@ -62,8 +62,7 @@
|
||||
"import os\n",
|
||||
"\n",
|
||||
"# ── Configure these paths once ───────────────────────────────────────────────\n",
|
||||
"GITHUB_TOKEN = '' # Personal access token with repo:read scope\n",
|
||||
"REPO_URL = 'https://github.com/YOUR_ORG/NowChessSystems.git' # replace\n",
|
||||
"REPO_URL = 'https://git.janis-eccarius.de/NowChess/NowChessSystems.git'\n",
|
||||
"DRIVE_ROOT = '/content/drive/MyDrive/NowChess'\n",
|
||||
"REPO_DIR = f'{DRIVE_ROOT}/NowChessSystems'\n",
|
||||
"PYTHON_DIR = f'{REPO_DIR}/modules/official-bots/python'\n",
|
||||
@@ -72,8 +71,7 @@
|
||||
"os.makedirs(DRIVE_ROOT, exist_ok=True)\n",
|
||||
"\n",
|
||||
"if not os.path.isdir(REPO_DIR):\n",
|
||||
" auth_url = REPO_URL.replace('https://', f'https://{GITHUB_TOKEN}@')\n",
|
||||
" !git clone --depth=1 \"{auth_url}\" \"{REPO_DIR}\"\n",
|
||||
" !git clone --depth=1 \"{REPO_URL}\" \"{REPO_DIR}\"\n",
|
||||
" print('Repo cloned to Drive.')\n",
|
||||
"else:\n",
|
||||
" !git -C \"{REPO_DIR}\" pull --ff-only\n",
|
||||
|
||||
Reference in New Issue
Block a user