Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
6f25967c
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6f25967c
编写于
11月 08, 2012
作者:
D
David Barri
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed issue with git commit silently failing.
Also updated status task and installation instuctions.
上级
5add5f76
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
28 addition
and
4 deletion
+28
-4
doc/installation.md
doc/installation.md
+8
-0
lib/gitlab/backend/gitolite_config.rb
lib/gitlab/backend/gitolite_config.rb
+2
-2
lib/tasks/gitlab/status.rake
lib/tasks/gitlab/status.rake
+18
-2
未找到文件。
doc/installation.md
浏览文件 @
6f25967c
...
...
@@ -244,6 +244,14 @@ and ensure you have followed all of the above steps carefully.
# or sqlite
sudo -u gitlab -H bundle install --without development test mysql postgres --deployment
#### Configure git client
Gitlab needs to be able to commit and push changes to gitolite.
Git requires a username and email in order to be able to do that.
sudo -u gitlab -H git config --global user.email "gitlab@localhost"
sudo -u gitlab -H git config --global user.name "Gitlab"
#### Setup database
sudo -u gitlab bundle exec rake gitlab:app:setup RAILS_ENV=production
...
...
lib/gitlab/backend/gitolite_config.rb
浏览文件 @
6f25967c
...
...
@@ -191,8 +191,8 @@ module Gitlab
def
push
tmp_dir
Dir
.
chdir
(
File
.
join
(
tmp_dir
,
"gitolite"
))
system
(
'git add -A'
)
system
(
'git commit -am "GitLab"'
)
raise
"Git add failed."
unless
system
(
'git add -A'
)
raise
"Git commit failed."
unless
system
(
'git commit -am "GitLab"'
)
if
system
(
'git push'
)
Dir
.
chdir
(
Rails
.
root
)
else
...
...
lib/tasks/gitlab/status.rake
浏览文件 @
6f25967c
...
...
@@ -37,9 +37,10 @@ namespace :gitlab do
return
end
FileUtils
.
rm_rf
(
"/tmp/gitolite_gitlab_test"
)
begin
`git clone
#{
Gitlab
.
config
.
gitolite_admin_uri
}
/tmp/gitolite_gitlab_test`
FileUtils
.
rm_rf
(
"/tmp/gitolite_gitlab_test"
)
`git clone
-q
#{
Gitlab
.
config
.
gitolite_admin_uri
}
/tmp/gitolite_gitlab_test`
raise
unless
$?
.
success?
print
"Can clone gitolite-admin?............"
puts
"YES"
.
green
rescue
...
...
@@ -48,6 +49,21 @@ namespace :gitlab do
return
end
begin
Dir
.
chdir
(
"/tmp/gitolite_gitlab_test"
)
do
`touch blah && git add blah && git commit -qm blah -- blah`
raise
unless
$?
.
success?
end
print
"Can git commit?............"
puts
"YES"
.
green
rescue
print
"Can git commit?............"
puts
"NO"
.
red
return
ensure
FileUtils
.
rm_rf
(
"/tmp/gitolite_gitlab_test"
)
end
print
"UMASK for .gitolite.rc is 0007? ............"
if
open
(
"
#{
git_base_path
}
/../.gitolite.rc"
).
grep
(
/UMASK([ \t]*)=([ \t>]*)0007/
).
any?
puts
"YES"
.
green
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录