Git-2.11.0 (3) 64 位处理双斜杠的错误是否有任何修复(或解决方法)?
Is there any fix (or workaround) to Git-2.11.0 (3) 64-bit bug in handling double slashes?
我刚从 https://git-for-windows.github.io/ 安装了最新最好的 Git-2.11.0.3-64-bit.exe
。
安装顺利,但是当我打开GitBash并输入git status
时,我收到了这个错误:
bash: /mingw64/bin/git: Bad address
咦?? 运行 ldd $(which git)
产量:
ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ff8d85f0000)
KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ff8d6050000)
KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ff8d5cb0000)
LIBEAY32.dll => /mingw64/bin/LIBEAY32.dll (0x63080000)
libiconv-2.dll => /mingw64/bin/libiconv-2.dll (0x66000000)
libintl-8.dll => /mingw64/bin/libintl-8.dll (0x61cc0000)
libpcre-1.dll => /mingw64/bin/libpcre-1.dll (0x69140000)
zlib1.dll => /mingw64/bin/zlib1.dll (0x62e80000)
ADVAPI32.dll => /c/windows/system32/ADVAPI32.dll (0x7ff8d80d0000)
msvcrt.dll => /c/windows/system32/msvcrt.dll (0x7ff8d61a0000)
USER32.dll => /c/windows/system32/USER32.dll (0x7ff8d6520000)
WS2_32.dll => /c/windows/system32/WS2_32.dll (0x7ff8d66a0000)
libssp-0.dll => /mingw64/bin/libssp-0.dll (0x68ac0000)
GDI32.dll => /c/windows/system32/GDI32.dll (0x7ff8d7b10000)
sechost.dll => /c/windows/SYSTEM32/sechost.dll (0x7ff8d7e70000)
RPCRT4.dll => /c/windows/system32/RPCRT4.dll (0x7ff8d7c60000)
NSI.dll => /c/windows/system32/NSI.dll (0x7ff8d6250000)
摸不着头脑在网上搜索了这个错误信息,果然找到了"Git for Windows doesn't like having entries containing \
or //
".
再一次,this Google Group post 建议这个错误应该在 v2.11.1 版本中修复。
不幸的是,我的系统不仅运行 Git,还运行 Cygwin 和 Emacs,它们依赖于路径中的一些网络共享,例如 //myserver/home/bin。事实上,Emacs 和 Cygwin 都希望 $HOME 为 //myserver/home。
所以,在 Git for Windows v2.11.1 发布之前,有没有办法修复 Git for Windows 与 //
?
一些我可以编辑的配置文件会影响 C:\Program Files\Git\git-bash.exe
如何查看继承的 %PATH%
?
几个月前我遇到了完全相同的问题,修复非常简单:转到您的环境变量,编辑任何此类环境变量(例如 %HOME%、%PATH%)以替换 \server\share
S:\
.
您当然需要先将 \server\share
映射到 S:\
。
我刚从 https://git-for-windows.github.io/ 安装了最新最好的 Git-2.11.0.3-64-bit.exe
。
安装顺利,但是当我打开GitBash并输入git status
时,我收到了这个错误:
bash: /mingw64/bin/git: Bad address
咦?? 运行 ldd $(which git)
产量:
ntdll.dll => /c/windows/SYSTEM32/ntdll.dll (0x7ff8d85f0000)
KERNEL32.DLL => /c/windows/system32/KERNEL32.DLL (0x7ff8d6050000)
KERNELBASE.dll => /c/windows/system32/KERNELBASE.dll (0x7ff8d5cb0000)
LIBEAY32.dll => /mingw64/bin/LIBEAY32.dll (0x63080000)
libiconv-2.dll => /mingw64/bin/libiconv-2.dll (0x66000000)
libintl-8.dll => /mingw64/bin/libintl-8.dll (0x61cc0000)
libpcre-1.dll => /mingw64/bin/libpcre-1.dll (0x69140000)
zlib1.dll => /mingw64/bin/zlib1.dll (0x62e80000)
ADVAPI32.dll => /c/windows/system32/ADVAPI32.dll (0x7ff8d80d0000)
msvcrt.dll => /c/windows/system32/msvcrt.dll (0x7ff8d61a0000)
USER32.dll => /c/windows/system32/USER32.dll (0x7ff8d6520000)
WS2_32.dll => /c/windows/system32/WS2_32.dll (0x7ff8d66a0000)
libssp-0.dll => /mingw64/bin/libssp-0.dll (0x68ac0000)
GDI32.dll => /c/windows/system32/GDI32.dll (0x7ff8d7b10000)
sechost.dll => /c/windows/SYSTEM32/sechost.dll (0x7ff8d7e70000)
RPCRT4.dll => /c/windows/system32/RPCRT4.dll (0x7ff8d7c60000)
NSI.dll => /c/windows/system32/NSI.dll (0x7ff8d6250000)
摸不着头脑在网上搜索了这个错误信息,果然找到了"Git for Windows doesn't like having entries containing \
or //
".
再一次,this Google Group post 建议这个错误应该在 v2.11.1 版本中修复。
不幸的是,我的系统不仅运行 Git,还运行 Cygwin 和 Emacs,它们依赖于路径中的一些网络共享,例如 //myserver/home/bin。事实上,Emacs 和 Cygwin 都希望 $HOME 为 //myserver/home。
所以,在 Git for Windows v2.11.1 发布之前,有没有办法修复 Git for Windows 与 //
?
一些我可以编辑的配置文件会影响 C:\Program Files\Git\git-bash.exe
如何查看继承的 %PATH%
?
几个月前我遇到了完全相同的问题,修复非常简单:转到您的环境变量,编辑任何此类环境变量(例如 %HOME%、%PATH%)以替换 \server\share
S:\
.
您当然需要先将 \server\share
映射到 S:\
。