summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitlab_shell.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index c01c9bf..77e278c 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -130,9 +130,9 @@ class GitlabShell
def init_git_annex(path)
full_repo_path = File.join(repos_path, path)
- unless File.exists?(File.join(full_repo_path, '.git', 'annex'))
- cmd = %W(git --git-dir=#{full_repo_path} annex init "GitLab")
- system(*cmd)
+ unless File.exists?(File.join(full_repo_path, 'annex'))
+ cmd = %W(git --git-dir=#{full_repo_path} annex init 'GitLab'")
+ system(*cmd, err: '/dev/null', out: '/dev/null')
$logger.info "Enable git-annex for repository: #{path}."
end
end