bitnami gitlab 8.1.4-0 gitl clone via http error:empty repo and download zip via webpage error

时间:2015-11-17 08:24:10

标签: gitlab bitnami gitlab-ci-runner gitlab-7

gitlab版本:bitnami gitlab-8.1.4_x64

os:ubuntu 12.04_x64

只是标题,我在gitlab设置了一个回购,通过ssh推送代码是好的,但是当我尝试通过http 克隆时,我得到一个空的存储库。 我试图在/etc/gitlab/gitlab.rb中添加nginx项,但它没有用。有人可以给我一些帮助吗?非常感谢你!

nginx['enabled'] = false
gitlab_git_http_server['listen_network'] = "tcp"
gitlab_git_http_server['listen_addr'] = "localhost:80"

与此同时,如果我尝试从网页下载邮政编码,我会收到以下信息。

{"RepoPath":"/opt/gitlab-8.1.4-0/apps/gitlab/repositories/wy/demo.git","ArchivePrefix":"demo-master-15fa55ea4cbd9a1368b2de6cda77b457e85f1573","ArchivePath":"/opt/gitlab-8.1.4-0/apps/gitlab/htdocs/tmp/repositories/demo.git/demo-master-15fa55ea4cbd9a1368b2de6cda77b457e85f1573.zip","CommitId":"15fa55ea4cbd9a1368b2de6cda77b457e85f1573"}

使用 gitlab-ci-multi-runner 时我会遇到问题

gitlab-ci-multi-runner 0.6.0 (4d8b5c2)
Using Shell executor...
Running on common...

Cloning repository...
Cloning into 'builds/e26b4ecf/0/wy/demo'...
warning: You appear to have cloned an empty repository.
Checking out 15fa55ea as master...
fatal: reference is not a tree: 15fa55ea4cbd9a1368b2de6cda77b457e85f1573

ERROR: Build failed with: exit status 1

1 个答案:

答案 0 :(得分:0)

这不是你的错,这是Bitnami包装中的一个错误。到目前为止还没有正式的解决方案,但你可以implement some workarounds as seen here。你可以使用SSH,但我会等待一个不错的补丁。

更新

Bitnami now offers Gitlab 8.2.3-3。这解决了这些问题。