git 推送的 Gitlab 问题
Gitlab issue with git push
从 git cli 和 gitlab http 界面执行 git 推送时遇到问题。
似乎无法弄清楚问题出在哪里。在 nginx 代理后面有 gitlab 服务器,我认为这可能是导致问题的原因,但删除了 nginx,现在创建了 1:1 nat 规则。在没有 natting 的同一子网上进行内部测试时,我遇到了同样的问题。
这可能与 issue 1716
有关
Turned out to be the behaviour you get if any of the directories in the gitlab-shell
repos_path
were symlinks (in our case on freebsd, /home
being used when that is a symlink to /usr/home
).
Putting in the absolute path without symlinks allows us to push over SSH as expected. The same thing affected us in the HTTPS setup as well.
I confirm that changing the path to /usr/home
in gitlab-shell/config.yml
solve the problem for me
I had the same issue when I tried to use a soft link for git-data
:
检查你的gitlab-shell.
例如:issue 3787:
My fault.. GitLab hostname was wrong in gitlab-shell/config.yml
and gitlab.yml
.
从 git cli 和 gitlab http 界面执行 git 推送时遇到问题。
似乎无法弄清楚问题出在哪里。在 nginx 代理后面有 gitlab 服务器,我认为这可能是导致问题的原因,但删除了 nginx,现在创建了 1:1 nat 规则。在没有 natting 的同一子网上进行内部测试时,我遇到了同样的问题。
这可能与 issue 1716
有关Turned out to be the behaviour you get if any of the directories in the
gitlab-shell
repos_path
were symlinks (in our case on freebsd,/home
being used when that is a symlink to/usr/home
).
Putting in the absolute path without symlinks allows us to push over SSH as expected. The same thing affected us in the HTTPS setup as well.I confirm that changing the path to
/usr/home
ingitlab-shell/config.yml
solve the problem for meI had the same issue when I tried to use a soft link for
git-data
:
检查你的gitlab-shell.
例如:issue 3787:
My fault.. GitLab hostname was wrong in
gitlab-shell/config.yml
andgitlab.yml
.