summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-17 01:30:59 -0500
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-17 01:30:59 -0500
commitdda5861fc9acb21755d5489a7e81de5cc4f87101 (patch)
tree8f678de44ff7dd979f1a8d4d6431566611a1089a
parentf888c13004c5258eb0080e9ae089c2ae779d9d2a (diff)
downloadgitlab-shell-dda5861fc9acb21755d5489a7e81de5cc4f87101.tar.gz
Fix git-annex init repo
-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