如何修复推送到原点的 gitolite.conf 中损坏的语法

发布于 2024-10-03 04:32:46 字数 307 浏览 0 评论 0原文

我在 gitolite-admin.git 存储库的本地克隆上的 gitolite.conf 中添加了通配符存储库部分

,但我突然在存储库名称中使用损坏的正则表达式推送了提交:

repo private/CREATOR/[A-z0-9_-+]

现在 gitolite 声称此正则表达式无效,我已经尝试过:

git reset HEAD^1 --hard
git push --force

但是这没有帮助,gitolite 仍然声称正则表达式损坏:/

I've added section for wildcards repos in gitolite.conf on my local clone of gitolite-admin.git repo

but i suddenly pushed commit with broken regex in repo name:

repo private/CREATOR/[A-z0-9_-+]

now gitolite claims that this regex is invalid, i've tryed:

git reset HEAD^1 --hard
git push --force

but this not helps, gitolite still claims about broken regex :/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

那一片橙海, 2024-10-10 04:32:46

好的,我找到了答案,gitolite 安装附带的 gl-dont-panic 脚本女巫已经解决了问题

OK i found answer, gl-dont-panic script witch comes with gitolite installation has solved the issue

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文