gpt4 book ai didi

在 Windows 7 上使用 Apache 2.2 的 Git 服务器设置

转载 作者:太空狗 更新时间:2023-10-29 14:22:28 24 4
gpt4 key购买 nike

环境 Windows 7 64 位

软件 Git 2.10、Apache 2.2、Python 3.3.5、Strawberry Perl 5.24、Libgti2 0.22、Open LDAP

Git 服务器设置已经完成。来自 Apache 2.2 的 httpdf.config 文件有配置项

ScriptAlias "/git" "../interceptor.pl

经过几次验证,Perl 脚本调用 httpbackend 使用代码 system(path to httpbackend)

有了这个,git 应该在 bash 中执行预接收和后接收 Hook 。

但是我收到了错误

Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 308 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: 0 [main] bash 17820 C:\Program Files\Git\bin..\usr\bin\bash.exe: *** fatal error - add_item ("\??\C:\Program Files\Git", "/", ...) failed, errno 1
remote: Stack trace:
remote: Frame Function Args
remote: 000FFFF9BB0 0018007164E (00180273652, 00180224DD9, 000FFFF9BB0, 000FFFF8B30)
remote: 000FFFF9BB0 00180046669 (000FFFFABE0, 000FFFF9BB0, 1D2156132A99C69, 00000000000)
remote: 000FFFF9BB0 001800466A2 (000FFFF9BB0, 00000000001, 000FFFF9BB0, 505C3A435C3F3F5C)
remote: 000FFFF9BB0 001800DF22B (00000000000, 000FFFFCE00, 001800CEE68, 1D215613B9BEF57)
remote: 000FFFFCC00 0018012D735 (00000000000, 00000000000, 001800C753E, 00000000000)
remote: 000FFFFCCC0 00180046CE5 (00000000000, 00000000000, 00000000000, 00000000000)
remote: 00000000000 0018004590C (00000000000, 00000000000, 00000000000, 00000000000)
remote: 000FFFFFFF0 001800459A4 (00000000000, 00000000000, 00000000000, 00000000000)
remote: End of stack trace
remote: 0 [main] bash 17708 C:\Program Files\Git\bin..\usr\bin\bash.exe: *** fatal error - add_item ("\??\C:\Program Files\Git", "/", ...) failed, errno 1
remote: Stack trace:
remote: Frame Function Args
remote: 000FFFF9BB0 0018007164E (00180273652, 00180224DD9, 000FFFF9BB0, 000FFFF8B30)
remote: 000FFFF9BB0 00180046669 (000FFFFABE0, 000FFFF9BB0, 1D215613BB15B5D, 00000000000)
remote: 000FFFF9BB0 001800466A2 (000FFFF9BB0, 00000000001, 000FFFF9BB0, 505C3A435C3F3F5C)
remote: 000FFFF9BB0 001800DF22B (00000000000, 000FFFFCE00, 001800CEE68, 1D2156144A312D3)
remote: 000FFFFCC00 0018012D735 (00000000000, 00000000000, 001800C753E, 00000000000)
remote: 000FFFFCCC0 00180046CE5 (00000000000, 00000000000, 00000000000, 00000000000)
remote: 00000000000 0018004590C (00000000000, 00000000000, 00000000000, 00000000000)
remote: 000FFFFFFF0 001800459A4 (00000000000, 00000000000, 00000000000, 00000000000)
remote: End of stack trace
To http://localhost:8113/git/MyDemo.git
9a34da9..939214d master -> master

由于这个错误, Hook 没有被执行。

最佳答案

类似的问题已经被报告过。请参阅下面的主题以了解讨论和解决方法。

https://github.com/git-for-windows/git/issues/493

另外,请参阅以下 Cygwin 常见问题解答:What applications have been found to interfere with Cygwin?

关于在 Windows 7 上使用 Apache 2.2 的 Git 服务器设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39654315/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com