Commit dda5861f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix git-annex init repo

parent f888c130
...@@ -130,9 +130,9 @@ class GitlabShell ...@@ -130,9 +130,9 @@ class GitlabShell
def init_git_annex(path) def init_git_annex(path)
full_repo_path = File.join(repos_path, path) full_repo_path = File.join(repos_path, path)
unless File.exists?(File.join(full_repo_path, '.git', 'annex')) unless File.exists?(File.join(full_repo_path, 'annex'))
cmd = %W(git --git-dir=#{full_repo_path} annex init "GitLab") cmd = %W(git --git-dir=#{full_repo_path} annex init 'GitLab'")
system(*cmd) system(*cmd, err: '/dev/null', out: '/dev/null')
$logger.info "Enable git-annex for repository: #{path}." $logger.info "Enable git-annex for repository: #{path}."
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment