推送后 Gitlab 不显示提交

标签 git gitlab

推送后我在 GitLab 中看不到提交。它仍然显示新创建的 repo 协议(protocol)的页面。我已经试过 Trouble Shooting Guide , 但错误仍然存​​在。

我的虚拟主机:

<VirtualHost *:80>
        ServerName git.example.net
        DocumentRoot /home/git/gitlab/public/
        <Directory /home/git/gitlab/public/>
                AllowOverride all
                Options -MultiViews
        </Directory>
</VirtualHost>

rake gitlab:check RAILS_ 显示以下内容:

    ENV=production
Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.0 ? ... OK (1.7.1)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ...
somerepo ... repository is empty

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have satellites? ...
somerepo ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.7.10)

Checking GitLab ... Finished

/home/git 目录列表:

drwxr-xr-x 16 git  git  4096 Sep 17 20:45 gitlab
drwxr-xr-x  2 git  git  4096 Sep 17 20:09 gitlab-satellites
drwxr-xr-x  8 git  git  4096 Sep 17 21:40 gitlab-shell
drwxrws---  5 git  git  4096 Sep 17 21:37 repositories

最佳答案

只需关闭 merge 请求并重新打开它。这将显示丢失的提交。可能是其中的错误。

关于推送后 Gitlab 不显示提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18870952/

相关文章:

docker - GitLab CI 因 maven-surefire-plugin 和 VM 崩溃而失败

git pull 在指定位置获取本地存储库(而不是 pwd)

macos - 如何在终端中显示当前分支和文件夹路径?

python - 将 Pipenv 与 gitlab ci 结合使用

gitlab - 如果一个 Gitlab 存储库是独立的存储库(未 fork ),如何使一个 Gitlab 存储库成为另一个 Gitlab 存储库的分支?

git - 删除gitlab上的提交

android - Github 对 pull 请求发表评论的 TeamCity 触发器

git mv 记录移动?

git - 由于本地对象丢失或损坏,推送被拒绝

由于丢失或损坏的本地对象 git-lfs,git push 被拒绝